Fix uniform component size calculation for booleans.

Trac #18608 Boolean Uniforms are treated as either ints or floats both internally and when being loaded. A GLBoolean is effectively a char which is incorrect. Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@872 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 709ed116
...@@ -126,7 +126,7 @@ size_t UniformComponentSize(GLenum type) ...@@ -126,7 +126,7 @@ size_t UniformComponentSize(GLenum type)
{ {
switch(type) switch(type)
{ {
case GL_BOOL: return sizeof(GLboolean); case GL_BOOL: return sizeof(GLint);
case GL_FLOAT: return sizeof(GLfloat); case GL_FLOAT: return sizeof(GLfloat);
case GL_INT: return sizeof(GLint); case GL_INT: return sizeof(GLint);
default: UNREACHABLE(); default: UNREACHABLE();
......
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