From 7f652fc523b56a3c13a90b417f8d32e7a702ed3d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 14 Jan 2011 14:57:54 +1000 Subject: [PATCH] srgb: fix fbo base format picking. Pointed out by Brian. --- src/mesa/main/fbobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index fac63ac994d..ea9f803cb15 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -989,6 +989,7 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat) case GL_RGB10: case GL_RGB12: case GL_RGB16: + case GL_SRGB8_EXT: return GL_RGB; case GL_RGBA: case GL_RGBA2: @@ -1000,7 +1001,6 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat) case GL_RGBA16: case GL_RGBA16_SNORM: case GL_SRGB8_ALPHA8_EXT: - case GL_SRGB8_EXT: return GL_RGBA; case GL_STENCIL_INDEX: case GL_STENCIL_INDEX1_EXT: -- 2.30.2