srgb: fix fbo base format picking.
authorDave Airlie <airlied@gmail.com>
Fri, 14 Jan 2011 04:57:54 +0000 (14:57 +1000)
committerDave Airlie <airlied@gmail.com>
Fri, 14 Jan 2011 04:58:47 +0000 (14:58 +1000)
Pointed out by Brian.

src/mesa/main/fbobject.c

index fac63ac994d44bc093ceb9a2753dcaae91de073c..ea9f803cb15c76f3a2b8e54c4c4899e49adec43a 100644 (file)
@@ -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: