Mesa (7.11): swrast: fix depth/stencil blits when there's no colorbuffer

Marek Olšák mareko at kemper.freedesktop.org
Mon Jul 11 21:16:32 UTC 2011


Module: Mesa
Branch: 7.11
Commit: 8a77029f4cdc8fcd0a17fa10b1ecd7ad2796be77
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a77029f4cdc8fcd0a17fa10b1ecd7ad2796be77

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Jul 10 20:03:05 2011 +0200

swrast: fix depth/stencil blits when there's no colorbuffer

NOTE: This is a candidate for the 7.10 and 7.11 branches.
(cherry picked from commit d1214cca084f277b5acc913490d354edbd4b990f)

---

 src/mesa/swrast/s_blit.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c
index 3516a41..7f53f19 100644
--- a/src/mesa/swrast/s_blit.c
+++ b/src/mesa/swrast/s_blit.c
@@ -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;




More information about the mesa-commit mailing list