mesa: add GL_RG case to _mesa_source_buffer_exists()
authorBrian Paul <brianp@vmware.com>
Thu, 21 Oct 2010 22:36:23 +0000 (16:36 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 21 Oct 2010 23:05:35 +0000 (17:05 -0600)
Fixes failure with glReadPixels(format=GL_RG)

src/mesa/main/framebuffer.c

index af3b5dfcf9b243260a70dc887f891e7986feb30c..7d55a84dfc7c7e772825fa070fcbc29590796aaf 100644 (file)
@@ -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: