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:
// Native EGL image
Image(GLsizei width, GLsizei height, GLenum format, GLenum type, int pitchP)
: sw::Surface(nullptr, width, height, depth, SelectInternalFormat(format, type), true, true, pitchP),
width(width), height(height), format(format), type(type), internalFormat(SelectInternalFormat(format, type)), depth(depth),
: 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(1),
parentTexture(nullptr)
{
shared = true;
......
......@@ -1145,7 +1145,7 @@ GL_APICALL void GL_APIENTRY glDrawBuffers(GLsizei n, const GLenum *bufs)
return error(GL_INVALID_OPERATION);
}
for(int i = 0; i < n; ++i)
for(unsigned int i = 0; i < (unsigned)n; i++)
{
switch(bufs[i])
{
......
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