Module: Mesa Branch: master Commit: 6fc6d5a09e36c56f4debd17bbbed15f732403619 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fc6d5a09e36c56f4debd17bbbed15f732403619
Author: Brian Paul <[email protected]> Date: Thu Oct 13 17:11:57 2011 -0600 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 5b73dcd..a9c7f9a 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
