mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 09:10:32 +01:00
gallium: check if surface has defined status in check_clear_depth_with_quad()
This was part of Keith's patch from Friday.
This commit is contained in:
parent
af2ccd4c0c
commit
72b671bd39
1 changed files with 3 additions and 1 deletions
|
|
@ -408,7 +408,9 @@ check_clear_depth_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb)
|
|||
const struct st_renderbuffer *strb = st_renderbuffer(rb);
|
||||
const GLboolean isDS = is_depth_stencil_format(strb->surface->format);
|
||||
return ctx->Scissor.Enabled
|
||||
|| (isDS && ctx->DrawBuffer->Visual.stencilBits > 0);
|
||||
|| (isDS &&
|
||||
strb->surface->status == PIPE_SURFACE_STATUS_DEFINED &&
|
||||
ctx->DrawBuffer->Visual.stencilBits > 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue