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 e517c9a..4124e44 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) {