From: José Fonseca Date: Thu, 11 Jun 2009 11:23:09 +0000 (+0100) Subject: mesa: Take the format from the right structure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48d816b8fff5d01b8c35bd2f933220e41d976e4c;p=mesa.git mesa: Take the format from the right structure. --- 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;