From: Brian Paul Date: Wed, 26 Apr 2006 03:29:30 +0000 (+0000) Subject: fix an assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65dccf377de51d6cbc15cb968eec85ba3f1febc1;p=mesa.git fix an assertion --- diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 35735a411f9..ff3ed420c4b 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1437,7 +1437,7 @@ _swrast_read_rgba_span( GLcontext *ctx, struct gl_renderbuffer *rb, ASSERT(rb); ASSERT(rb->GetRow); ASSERT(rb->_BaseFormat == GL_RGB || rb->_BaseFormat == GL_RGBA); - ASSERT(rb->DataType == GL_UNSIGNED_BYTE); + ASSERT(rb->DataType == CHAN_TYPE); rb->GetRow(ctx, rb, length, x + skip, y, rgba + skip); } }