mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: Take the format from the right structure.
This commit is contained in:
parent
96aca15c9d
commit
48d816b8ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue