summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-01-14 14:57:54 +1000
committerDave Airlie <[email protected]>2011-01-14 14:58:47 +1000
commit7f652fc523b56a3c13a90b417f8d32e7a702ed3d (patch)
tree6b5020b559131d2f50fdd76b9a17b6aad8cfd1ed /src/mesa/main/fbobject.c
parent7b9dc40b0d984ca2da915224517d5ba9d633f32a (diff)
srgb: fix fbo base format picking.
Pointed out by Brian.
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r--src/mesa/main/fbobject.c2
1 files changed, 1 insertions, 1 deletions
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: