Commit 8be7e3f3 by Alexis Hetu Committed by Alexis Hétu

Fixed error in TexImage2D

Corrected small mistake in type. Change-Id: Ib96b5dfca7fc843c83c3f15a64f141769555d9aa Reviewed-on: https://swiftshader-review.googlesource.com/3031Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 4d614fd8
...@@ -5027,7 +5027,7 @@ void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, ...@@ -5027,7 +5027,7 @@ void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width,
case GL_RGBA32UI: case GL_RGBA32UI:
switch(type) switch(type)
{ {
case GL_INT: case GL_UNSIGNED_INT:
break; break;
default: default:
return error(GL_INVALID_ENUM); return error(GL_INVALID_ENUM);
...@@ -5036,7 +5036,7 @@ void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, ...@@ -5036,7 +5036,7 @@ void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width,
case GL_RGBA32I: case GL_RGBA32I:
switch(type) switch(type)
{ {
case GL_UNSIGNED_INT: case GL_INT:
break; break;
default: default:
return error(GL_INVALID_ENUM); return error(GL_INVALID_ENUM);
......
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