st/mesa: set colormask to zero when blitting depth
[mesa.git] / src / mesa / state_tracker / st_cb_blit.c
index 4547ba7936fd43edb90cee2c334df03dbec89c0c..a50b79a1852c03842e01a248da56afbefa038d21 100644 (file)
@@ -294,7 +294,7 @@ st_BlitFramebuffer(struct gl_context *ctx,
                           srcX0, srcY0, srcX1, srcY1,
                           srcDepthRb->surface->u.tex.first_layer,
                           dstDepthSurf, dstX0, dstY0, dstX1, dstY1,
-                          0.0, pFilter, TGSI_WRITEMASK_XYZW);
+                          0.0, pFilter, 0);
       }
       else {
          /* blitting depth and stencil separately */
@@ -305,7 +305,7 @@ st_BlitFramebuffer(struct gl_context *ctx,
                              srcX0, srcY0, srcX1, srcY1,
                              srcDepthRb->surface->u.tex.first_layer,
                              dstDepthSurf, dstX0, dstY0, dstX1, dstY1,
-                             0.0, pFilter, TGSI_WRITEMASK_XYZW);
+                             0.0, pFilter, 0);
          }
 
          if (mask & GL_STENCIL_BUFFER_BIT) {