mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
4c68c6dcff
commit
3649800009
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue