mesa/st: only compare the one scissor
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 6 Mar 2014 03:34:27 +0000 (22:34 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 6 Mar 2014 03:51:58 +0000 (22:51 -0500)
commit3649800009bffc7787f08c32cfee355b8e874b20
tree8609c5173096ed005dcb3d27455f28916719f2d7
parent4c68c6dcffe6c738d563eb0e0650bb865a5457b2
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>
src/mesa/state_tracker/st_atom_scissor.c