st/mesa: fix unsigned/signed breakage in scissor
authorXavier Chantry <chantry.xavier@gmail.com>
Sat, 23 Jan 2010 16:27:21 +0000 (17:27 +0100)
committerBrian Paul <brianp@vmware.com>
Sun, 24 Jan 2010 23:45:49 +0000 (16:45 -0700)
commitfdfa4c85297d5d25e7256bf73e35309b358af86c
tree90028bcc0a0cfaba71f77ea6ca75a1ec1c0319ef
parente85cb98a169f83e1a1ad7f17cbbedaee0ea47fe1
st/mesa: fix unsigned/signed breakage in scissor

commit 53174afeeb introduced a portability change that converted GLint x,y
to GLuint. That breaks when x and y are negative, which seems to be allowed,
and which at least one game uses : teeworlds.

Rather than simply reverting the change, it seems possible to convert the
16bit unsigned to GLint so that comparisons are made between signed integers
instead.  This hopefully does not break anything while keeping MSVC happy.

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_scissor.c