mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test.
authorDave Airlie <airlied@gmail.com>
Thu, 13 Jan 2011 05:16:11 +0000 (15:16 +1000)
committerDave Airlie <airlied@gmail.com>
Thu, 13 Jan 2011 05:17:34 +0000 (15:17 +1000)
src/mesa/main/fbobject.c

index e3aefe9b85584288f2380e1fd60cd2857a819b43..fac63ac994d44bc093ceb9a2753dcaae91de073c 100644 (file)
@@ -999,6 +999,8 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat)
    case GL_RGBA12:
    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: