Skip to content
Snippets Groups Projects
Commit 04ca4cef authored by Roland Scheidegger's avatar Roland Scheidegger Committed by Carl Worth
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>
(cherry picked from commit 604e54de)
parent b574944a
No related branches found
No related tags found
Loading
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