From: Dave Airlie Date: Thu, 13 Jan 2011 05:16:11 +0000 (+1000) Subject: mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c8e26d66ae41e900cc88521da9c0dc02803d7d2;p=mesa.git mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test. --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index e3aefe9b855..fac63ac994d 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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: