Skip to content
Snippets Groups Projects
Commit 604e54de authored by Roland Scheidegger's avatar Roland Scheidegger
Browse files

draw: (trivial) fix clamping of viewport index


The old logic would let all negative values go through unclamped, with
potentially disastrous results (probably trying to fetch viewport values
from random memory locations). GL has undefined rendering for vp indices
outside valid range but that's a bit too undefined...
(The logic is now the same as in llvmpipe.)

CC: "10.1 10.2" <mesa-stable@lists.freedesktop.org>

Reviewed-by: default avatarJose Fonseca <jfonseca@vmware.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Tested-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent f6a99d11
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment