mesa: Take the format from the right structure.

This commit is contained in:
José Fonseca 2009-06-11 12:23:09 +01:00
parent 96aca15c9d
commit 48d816b8ff

View file

@ -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;