Commit fcd4bed1 by Nicolas Capens

Fix compile warnings.

Change-Id: I95aff944b1d38c297b3ece475717db4c77b3274d Reviewed-on: https://swiftshader-review.googlesource.com/4736Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 3f1ab0c8
...@@ -58,8 +58,8 @@ public: ...@@ -58,8 +58,8 @@ public:
// Native EGL image // Native EGL image
Image(GLsizei width, GLsizei height, GLenum format, GLenum type, int pitchP) Image(GLsizei width, GLsizei height, GLenum format, GLenum type, int pitchP)
: sw::Surface(nullptr, width, height, depth, SelectInternalFormat(format, type), true, true, pitchP), : sw::Surface(nullptr, width, height, 1, SelectInternalFormat(format, type), true, true, pitchP),
width(width), height(height), format(format), type(type), internalFormat(SelectInternalFormat(format, type)), depth(depth), width(width), height(height), format(format), type(type), internalFormat(SelectInternalFormat(format, type)), depth(1),
parentTexture(nullptr) parentTexture(nullptr)
{ {
shared = true; shared = true;
......
...@@ -1145,7 +1145,7 @@ GL_APICALL void GL_APIENTRY glDrawBuffers(GLsizei n, const GLenum *bufs) ...@@ -1145,7 +1145,7 @@ GL_APICALL void GL_APIENTRY glDrawBuffers(GLsizei n, const GLenum *bufs)
return error(GL_INVALID_OPERATION); return error(GL_INVALID_OPERATION);
} }
for(int i = 0; i < n; ++i) for(unsigned int i = 0; i < (unsigned)n; i++)
{ {
switch(bufs[i]) switch(bufs[i])
{ {
...@@ -1542,7 +1542,7 @@ GL_APICALL void GL_APIENTRY glFramebufferTextureLayer(GLenum target, GLenum atta ...@@ -1542,7 +1542,7 @@ GL_APICALL void GL_APIENTRY glFramebufferTextureLayer(GLenum target, GLenum atta
{ {
TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLuint texture = %d, GLint level = %d, GLint layer = %d)", TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLuint texture = %d, GLint level = %d, GLint layer = %d)",
target, attachment, texture, level, layer); target, attachment, texture, level, layer);
// GLES 3.0.4 spec, p.209, section 4.4.2 // GLES 3.0.4 spec, p.209, section 4.4.2
// If texture is zero, any image or array of images attached to the attachment point // If texture is zero, any image or array of images attached to the attachment point
// named by attachment is detached. Any additional parameters(level, textarget, // named by attachment is detached. Any additional parameters(level, textarget,
...@@ -2427,7 +2427,7 @@ GL_APICALL void GL_APIENTRY glUniform1uiv(GLint location, GLsizei count, const G ...@@ -2427,7 +2427,7 @@ GL_APICALL void GL_APIENTRY glUniform1uiv(GLint location, GLsizei count, const G
{ {
TRACE("(GLint location = %d, GLsizei count = %d, const GLuint *value = %p)", TRACE("(GLint location = %d, GLsizei count = %d, const GLuint *value = %p)",
location, count, value); location, count, value);
if(count < 0) if(count < 0)
{ {
return error(GL_INVALID_VALUE); return error(GL_INVALID_VALUE);
......
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