diff options
author | Chia-I Wu <[email protected]> | 2013-08-07 17:32:38 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-08-07 18:00:46 +0800 |
commit | 186dab5b8fd1d937dfb3b4379d00e4e88f929c36 (patch) | |
tree | 551e63911815e34e014c700d39362ccc132db540 /src/gallium/drivers/ilo/ilo_state.c | |
parent | 12522041d6e17ac176a8e86c590789bfbbe9def5 (diff) |
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.c | 2 |
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; |