swrast: remove gl_renderbuffer::DataType assertions
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jan 2012 17:54:31 +0000 (10:54 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:09 +0000 (14:12 -0700)
This field will go away, so remove some uses of it.

src/mesa/swrast/s_blend.c
src/mesa/swrast/s_logic.c
src/mesa/swrast/s_masking.c

index be5010b1383b09d6254e1c9e61f7c9e9baaf9c29..cd6e6f0360214ec5e397045cb2af0673cebd8796 100644 (file)
@@ -1000,7 +1000,6 @@ _swrast_blend_span(struct gl_context *ctx, struct gl_renderbuffer *rb, SWspan *s
 
    ASSERT(span->end <= MAX_WIDTH);
    ASSERT(span->arrayMask & SPAN_RGBA);
-   ASSERT(rb->DataType == span->array->ChanType);
    ASSERT(!ctx->Color.ColorLogicOpEnabled);
 
    rbPixels = _swrast_get_dest_rgba(ctx, rb, span);
index 80ee46c24be08030f89f7c37a2a365ff98124db7..e908a0efeb0ce63f1f9a22965fb07bf8df347e78 100644 (file)
@@ -195,7 +195,6 @@ _swrast_logicop_rgba_span(struct gl_context *ctx, struct gl_renderbuffer *rb,
 
    ASSERT(span->end < MAX_WIDTH);
    ASSERT(span->arrayMask & SPAN_RGBA);
-   ASSERT(rb->DataType == span->array->ChanType);
 
    rbPixels = _swrast_get_dest_rgba(ctx, rb, span);
 
index 2e68f8c4bd7d0f72c1e754fc8e26a33c0e7d6d62..2d962ebc5c34e7b8c67ee6d6632344fa845c8f96 100644 (file)
@@ -48,7 +48,6 @@ _swrast_mask_rgba_span(struct gl_context *ctx, struct gl_renderbuffer *rb,
 
    ASSERT(n < MAX_WIDTH);
    ASSERT(span->arrayMask & SPAN_RGBA);
-   ASSERT(rb->DataType == span->array->ChanType);
 
    rbPixels = _swrast_get_dest_rgba(ctx, rb, span);