According to spec, the stencil ref is clamped to the range [0,2^s-1]

The clamp to zero occurs on set since negative values will never be useful.
The clamp to 2^s - 1 occurs on use since it is dependant on the currently bound stencil buffer

Original-Author: Jim Hauxwell <james@dattrax.co.uk>
Signed-off-by: Daniel Koch

git-svn-id: http://angleproject.googlecode.com/svn/trunk@324 736b8ea6-26fd-11df-bfd4-992fa37f6226
1 file changed