From: Dave Airlie Date: Fri, 14 Jan 2011 04:57:54 +0000 (+1000) Subject: srgb: fix fbo base format picking. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f652fc523b56a3c13a90b417f8d32e7a702ed3d;p=mesa.git srgb: fix fbo base format picking. Pointed out by Brian. --- 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: