mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
mesa: Only do read write when we don't have a depth value to write
This commit is contained in:
parent
e3f14f2f3b
commit
41cf681535
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
|
|||
y = ctx->DrawBuffer->Height - y - height;
|
||||
}
|
||||
|
||||
if(format == GL_DEPTH_STENCIL &&
|
||||
if(format != GL_DEPTH_STENCIL &&
|
||||
pf_get_component_bits( strb->format, PIPE_FORMAT_COMP_Z ) != 0)
|
||||
usage = PIPE_TRANSFER_READ_WRITE;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue