summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2013-08-07 17:32:38 +0800
committerChia-I Wu <olvaffe@gmail.com>2013-08-07 18:00:46 +0800
commit186dab5b8fd1d937dfb3b4379d00e4e88f929c36 (patch)
tree551e63911815e34e014c700d39362ccc132db540 /src/gallium/drivers/ilo/ilo_state.c
parent12522041d6e17ac176a8e86c590789bfbbe9def5 (diff)
downloadexternal_mesa3d-186dab5b8fd1d937dfb3b4379d00e4e88f929c36.zip
external_mesa3d-186dab5b8fd1d937dfb3b4379d00e4e88f929c36.tar.gz
external_mesa3d-186dab5b8fd1d937dfb3b4379d00e4e88f929c36.tar.bz2
ilo: correctly check for stencil ref change
I intended to do a memcmp(), not a memcpy()...
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-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 59cc8ff..fea530a 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;