summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c
index 59cc8ff3621..fea530af2bd 100644
--- a/src/gallium/drivers/ilo/ilo_state.c
+++ b/src/gallium/drivers/ilo/ilo_state.c
@@ -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;