summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-10-23 10:44:47 -0600
committerBrian Paul <brianp@vmware.com>2011-10-23 10:44:47 -0600
commitb7f670655dc57ea90963888f95e22773ce0ad131 (patch)
tree126b81f0b7e3887898922f0bd6520ce07d8b1afd
parent68da4b50e9b6aa72a9b155f650952620063e1b94 (diff)
swrast: update renderbuffer format assertion
Failed when exercising i965 swrast fallback rendering.
-rw-r--r--src/mesa/swrast/s_span.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index e517c9ae146..4124e444e00 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -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) {