From: Brian Paul Date: Thu, 13 Oct 2011 23:11:57 +0000 (-0600) Subject: meta: fix redBits size test in get_temp_image_type() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fc6d5a09e36c56f4debd17bbbed15f732403619;p=mesa.git meta: fix redBits size test in get_temp_image_type() Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41768 --- diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 5b73dcdfbcf..a9c7f9aa967 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -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;