mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
zink: correct typo in stencil-setup
Without this, we end up using two-sided stencil when one-sided stencil should be used. Whoops. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853>
This commit is contained in:
parent
d1d27e9db4
commit
9e94dcca67
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ zink_create_depth_stencil_alpha_state(struct pipe_context *pctx,
|
|||
cso->stencil_front = stencil_op_state(depth_stencil_alpha->stencil);
|
||||
}
|
||||
|
||||
if (depth_stencil_alpha->stencil[0].enabled)
|
||||
if (depth_stencil_alpha->stencil[1].enabled)
|
||||
cso->stencil_back = stencil_op_state(depth_stencil_alpha->stencil + 1);
|
||||
else
|
||||
cso->stencil_back = cso->stencil_front;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue