swrast: update renderbuffer format assertion
authorBrian Paul <brianp@vmware.com>
Sun, 23 Oct 2011 16:44:47 +0000 (10:44 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 23 Oct 2011 16:44:47 +0000 (10:44 -0600)
Failed when exercising i965 swrast fallback rendering.

src/mesa/swrast/s_span.c

index e517c9ae14681740c08ec5da63f139798d386b7b..4124e444e000c37368eddc4e248b6ab22915e106 100644 (file)
@@ -1251,7 +1251,10 @@ _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span)
                       4 * span->end * sizeof(GLchan));
             }
 
-            ASSERT(rb->_BaseFormat == GL_RGBA || rb->_BaseFormat == GL_RGB ||
+            ASSERT(rb->_BaseFormat == GL_RGBA ||
+                   rb->_BaseFormat == GL_RGB ||
+                   rb->_BaseFormat == GL_RED ||
+                   rb->_BaseFormat == GL_RG ||
                   rb->_BaseFormat == GL_ALPHA);
 
             if (ctx->Color.ColorLogicOpEnabled) {