From: Brian Paul Date: Thu, 21 Oct 2010 22:36:23 +0000 (-0600) Subject: mesa: add GL_RG case to _mesa_source_buffer_exists() X-Git-Tag: mesa-7.10~1058 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4c1bcce44add7642e857237dfe69bf1fc4511d9;p=platform%2Fupstream%2Fmesa.git mesa: add GL_RG case to _mesa_source_buffer_exists() Fixes failure with glReadPixels(format=GL_RG) --- diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index af3b5df..7d55a84 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -868,6 +868,7 @@ _mesa_source_buffer_exists(struct gl_context *ctx, GLenum format) case GL_LUMINANCE: case GL_LUMINANCE_ALPHA: case GL_INTENSITY: + case GL_RG: case GL_RGB: case GL_BGR: case GL_RGBA: