From 8c8e26d66ae41e900cc88521da9c0dc02803d7d2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Jan 2011 15:16:11 +1000 Subject: [PATCH] mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test. --- src/mesa/main/fbobject.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2