diff options
author | Ilia Mirkin <[email protected]> | 2014-03-05 22:34:27 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-03-05 22:51:58 -0500 |
commit | 3649800009bffc7787f08c32cfee355b8e874b20 (patch) | |
tree | 8609c5173096ed005dcb3d27455f28916719f2d7 | |
parent | 4c68c6dcffe6c738d563eb0e0650bb865a5457b2 (diff) |
mesa/st: only compare the one scissor
sizeof(scissor) returns the size of the full array rather than a single
element. Fix it to consider just the one element.
Fixes: 0705fa35 ("st/mesa: add support for GL_ARB_viewport_array (v0.2)")
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_atom_scissor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_scissor.c b/src/mesa/state_tracker/st_atom_scissor.c index a19ade1fafe..b7203094406 100644 --- a/src/mesa/state_tracker/st_atom_scissor.c +++ b/src/mesa/state_tracker/st_atom_scissor.c @@ -85,7 +85,7 @@ update_scissor( struct st_context *st ) scissor[i].maxy = maxy; } - if (memcmp(&scissor[i], &st->state.scissor[i], sizeof(scissor)) != 0) { + if (memcmp(&scissor[i], &st->state.scissor[i], sizeof(scissor[0])) != 0) { /* state has changed */ st->state.scissor[i] = scissor[i]; /* struct copy */ changed = true; |