mesa: fix bad cast conversions in viewport()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 19:43:06 +0000 (21:43 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 Aug 2017 07:50:14 +0000 (09:50 +0200)
commitaf45b8159cf5b9c15000e4221af6dc4cb85bd05e
treeaf835ac84cbea81067b1ed2455f046cc42869223
parent5281e4ed3b2ee25627517c23708bb02857ec5992
mesa: fix bad cast conversions in viewport()

Fixes: ddc32537d6 ("mesa: clamp viewport values only once when using glViewport()")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101981
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101989
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/viewport.c