From 6fc6d5a09e36c56f4debd17bbbed15f732403619 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 13 Oct 2011 17:11:57 -0600 Subject: [PATCH] meta: fix redBits size test in get_temp_image_type() Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41768 --- src/mesa/drivers/common/meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2