mesa: fix incorrect size/error test in _mesa_GetUnsignedBytevEXT()
authorBrian Paul <brianp@vmware.com>
Mon, 29 Jan 2018 21:19:44 +0000 (14:19 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 04:15:52 +0000 (21:15 -0700)
commit94843e60562c52975325f59f21cb1c8e89f2fe20
treee1f59a403c9763be5404ad58caa58194ec9a072c
parente4ca1d64565b4d665bcaf5d08922bfbe1d920e7a
mesa: fix incorrect size/error test in _mesa_GetUnsignedBytevEXT()

get_value_size() returns -1 for an error.  The similar check in
_mesa_GetUnsignedBytei_vEXT() is correct.

Found by chance.  There are apparently no Piglit tests which exercise
glGetUnsignedBytei_vEXT() or glGetUnsignedBytevEXT().

Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/get.c