mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
zink: use a better check for current fb zsbuf in zink_clear_depth_stencil()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35722>
This commit is contained in:
parent
76e2b61a2f
commit
defc3dfa79
1 changed files with 1 additions and 1 deletions
|
|
@ -600,7 +600,7 @@ zink_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
zink_stop_conditional_render(ctx);
|
||||
ctx->render_condition_active = false;
|
||||
}
|
||||
bool cur_attachment = ctx->fb_zsbuf == dst;
|
||||
bool cur_attachment = pipe_surface_equal(&ctx->fb_state.zsbuf, dst);
|
||||
if (dstx > ctx->fb_state.width || dsty > ctx->fb_state.height ||
|
||||
dstx + width > ctx->fb_state.width ||
|
||||
dsty + height > ctx->fb_state.height)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue