fix an assertion
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 26 Apr 2006 03:29:30 +0000 (03:29 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 26 Apr 2006 03:29:30 +0000 (03:29 +0000)
src/mesa/swrast/s_span.c

index 35735a411f9af867ab8d5e1c47c18570909d202f..ff3ed420c4b1c18687cf8a6e95daafb065140a2b 100644 (file)
@@ -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);
    }
 }