swrast: fix depth/stencil blits when there's no colorbuffer
authorMarek Olšák <maraeo@gmail.com>
Sun, 10 Jul 2011 18:03:05 +0000 (20:03 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 10 Jul 2011 19:47:20 +0000 (21:47 +0200)
NOTE: This is a candidate for the 7.10 and 7.11 branches.

src/mesa/swrast/s_blit.c

index 3516a41bf41a84e73d3f66505ca8ad67f4375ef7..7f53f19eb62647210cc3c62ab52d74fd743343b8 100644 (file)
@@ -568,9 +568,6 @@ _swrast_BlitFramebuffer(struct gl_context *ctx,
    };
    GLint i;
 
-   if (!ctx->DrawBuffer->_NumColorDrawBuffers)
-      return;
-
    if (!_mesa_clip_blit(ctx, &srcX0, &srcY0, &srcX1, &srcY1,
                         &dstX0, &dstY0, &dstX1, &dstY1)) {
       return;