meta: fix redBits size test in get_temp_image_type()
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41768
This commit is contained in:
@@ -2942,7 +2942,7 @@ get_temp_image_type(struct gl_context *ctx, GLenum baseFormat)
|
||||
case GL_INTENSITY:
|
||||
if (ctx->DrawBuffer->Visual.redBits <= 8)
|
||||
return GL_UNSIGNED_BYTE;
|
||||
else if (ctx->DrawBuffer->Visual.redBits <= 8)
|
||||
else if (ctx->DrawBuffer->Visual.redBits <= 16)
|
||||
return GL_UNSIGNED_SHORT;
|
||||
else
|
||||
return GL_FLOAT;
|
||||
|
||||
Reference in New Issue
Block a user