Mesa (master): mesa: add GL_RG case to _mesa_source_buffer_exists()
Brian Paul
brianp at kemper.freedesktop.org
Thu Oct 21 23:07:11 UTC 2010
Module: Mesa
Branch: master
Commit: d4c1bcce44add7642e857237dfe69bf1fc4511d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4c1bcce44add7642e857237dfe69bf1fc4511d9
Author: Brian Paul <brianp at vmware.com>
Date: Thu Oct 21 16:36:23 2010 -0600
mesa: add GL_RG case to _mesa_source_buffer_exists()
Fixes failure with glReadPixels(format=GL_RG)
---
src/mesa/main/framebuffer.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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:
More information about the mesa-commit
mailing list