summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-10-21 16:36:23 -0600
committerBrian Paul <[email protected]>2010-10-21 17:05:35 -0600
commitd4c1bcce44add7642e857237dfe69bf1fc4511d9 (patch)
treec0c2dbdcc08451bf904a134e4a52978ce1d99615 /src/mesa
parent154d91cad907ba5643fb3e39717a8f7c5a76049a (diff)
mesa: add GL_RG case to _mesa_source_buffer_exists()
Fixes failure with glReadPixels(format=GL_RG)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/framebuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index af3b5dfcf9b..7d55a84dfc7 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: