diff options
author | José Fonseca <[email protected]> | 2009-06-11 12:23:09 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-11 12:23:09 +0100 |
commit | 48d816b8fff5d01b8c35bd2f933220e41d976e4c (patch) | |
tree | da1370b91138d908787470fb89f2d16499c27631 /src | |
parent | 96aca15c9d5b6f03fc9b407f02d6966fffeb4f5d (diff) |
mesa: Take the format from the right structure.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawpixels.c | 2 |
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; |