summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-06-11 15:37:53 +0100
committerJakob Bornecrantz <[email protected]>2009-06-11 15:37:53 +0100
commit41cf68153568d4e75ff3cda627293d101f8a8003 (patch)
tree8e52e6d8930789aa58eacf9df393db5dd79450ad /src
parente3f14f2f3bdd66400d02f0f9076593db609874a8 (diff)
mesa: Only do read write when we don't have a depth value to write
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index b674e6b74a1..04cf673f637 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -643,7 +643,7 @@ draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
y = ctx->DrawBuffer->Height - y - height;
}
- if(format == GL_DEPTH_STENCIL &&
+ if(format != GL_DEPTH_STENCIL &&
pf_get_component_bits( strb->format, PIPE_FORMAT_COMP_Z ) != 0)
usage = PIPE_TRANSFER_READ_WRITE;
else