According to spec, the stencil ref is clamped to the range [0,2^s-1]
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 <474ba67bdb289c6263b36dfd8a7bed6c85b04943@dattrax.co.uk>
Signed-off-by: Daniel Koch

csulmone/angle,csulmone/angle,csulmone/angle,csulmone/angle