ilo: correctly check for stencil ref change

I intended to do a memcmp(), not a memcpy()...
This commit is contained in:
Chia-I Wu 2013-08-07 17:32:38 +08:00
parent 12522041d6
commit 186dab5b8f

View file

@ -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;