summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-06-11 12:23:09 +0100
committerJosé Fonseca <[email protected]>2009-06-11 12:23:09 +0100
commit48d816b8fff5d01b8c35bd2f933220e41d976e4c (patch)
treeda1370b91138d908787470fb89f2d16499c27631
parent96aca15c9d5b6f03fc9b407f02d6966fffeb4f5d (diff)
mesa: Take the format from the right structure.
-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 588daf79b21..b674e6b74a1 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -840,7 +840,7 @@ copy_stencil_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
GL_STENCIL_INDEX, GL_UNSIGNED_BYTE,
&ctx->DefaultPacking, buffer);
- if(pf_get_component_bits( ptDraw->format, PIPE_FORMAT_COMP_Z ) != 0)
+ if(pf_get_component_bits( rbDraw->format, PIPE_FORMAT_COMP_Z ) != 0)
usage = PIPE_TRANSFER_READ_WRITE;
else
usage = PIPE_TRANSFER_WRITE;