mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
ilo: correctly check for stencil ref change
I intended to do a memcmp(), not a memcpy()...
This commit is contained in:
parent
12522041d6
commit
186dab5b8f
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,7 @@ ilo_set_stencil_ref(struct pipe_context *pipe,
|
|||
struct ilo_context *ilo = ilo_context(pipe);
|
||||
|
||||
/* util_blitter may set this unnecessarily */
|
||||
if (!memcpy(&ilo->stencil_ref, state, sizeof(*state)))
|
||||
if (!memcmp(&ilo->stencil_ref, state, sizeof(*state)))
|
||||
return;
|
||||
|
||||
ilo->stencil_ref = *state;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue