Commit 46c70930 by Greg Hartman Committed by Nicolas Capens

Fix several compilation warnings.

Change-Id: I6525eab19ebe5a90e8f0fbfbef3d3e2ba2170da9 Reviewed-on: https://swiftshader-review.googlesource.com/2944Reviewed-by: 's avatarGreg Hartman <ghartman@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent e56b300a
...@@ -28,8 +28,8 @@ class Image : public sw::Surface ...@@ -28,8 +28,8 @@ class Image : public sw::Surface
{ {
public: public:
Image(sw::Resource *resource, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, sw::Format internalFormat) Image(sw::Resource *resource, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, sw::Format internalFormat)
: width(width), height(height), format(format), type(type), internalFormat(internalFormat), depth(depth) : sw::Surface(resource, width, height, depth, internalFormat, true, true),
, sw::Surface(resource, width, height, depth, internalFormat, true, true) width(width), height(height), format(format), type(type), internalFormat(internalFormat), depth(depth)
{ {
shared = false; shared = false;
...@@ -40,8 +40,8 @@ public: ...@@ -40,8 +40,8 @@ public:
} }
Image(sw::Resource *resource, int width, int height, int depth, sw::Format internalFormat, bool lockable, bool renderTarget) Image(sw::Resource *resource, int width, int height, int depth, sw::Format internalFormat, bool lockable, bool renderTarget)
: width(width), height(height), format(0 /*GL_NONE*/), type(0 /*GL_NONE*/), internalFormat(internalFormat), depth(depth) : sw::Surface(resource, width, height, depth, internalFormat, lockable, renderTarget),
, sw::Surface(resource, width, height, depth, internalFormat, lockable, renderTarget) width(width), height(height), format(0 /*GL_NONE*/), type(0 /*GL_NONE*/), internalFormat(internalFormat), depth(depth)
{ {
shared = false; shared = false;
......
...@@ -490,7 +490,7 @@ EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLi ...@@ -490,7 +490,7 @@ EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLi
case EGL_SWAP_BEHAVIOR: case EGL_SWAP_BEHAVIOR:
if(value == EGL_BUFFER_PRESERVED) if(value == EGL_BUFFER_PRESERVED)
{ {
if(!(eglSurface->getSurfaceType() && EGL_SWAP_BEHAVIOR_PRESERVED_BIT)) if(!(eglSurface->getSurfaceType() & EGL_SWAP_BEHAVIOR_PRESERVED_BIT))
{ {
return error(EGL_BAD_MATCH, EGL_FALSE); return error(EGL_BAD_MATCH, EGL_FALSE);
} }
......
...@@ -92,4 +92,4 @@ private: ...@@ -92,4 +92,4 @@ private:
LibGLES_CMexports *libGLES_CMexports; LibGLES_CMexports *libGLES_CMexports;
}; };
#endif libGLES_CM_hpp #endif // libGLES_CM_hpp
...@@ -193,4 +193,4 @@ namespace sw ...@@ -193,4 +193,4 @@ namespace sw
}; };
} }
#endif sw_TextureStage_hpp #endif // sw_TextureStage_hpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment