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 <james@dattrax.co.uk>
Signed-off-by: Daniel Koch

git-svn-id: 947ae547afacb859f3991e003b9d6feb04be57d7@324 736b8ea6-26fd-11df-bfd4-992fa37f6226

dumganhar/angleproject,adobe/angle.js,dumganhar/angleproject,Mustaavalkosta/android_external_angle,adobe/angle.js,android-ia/platform_external_chromium_org_third_party_angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,Mustaavalkosta/android_external_angle,spurious/angle-mirror,adobe/angle.js,android-ia/platform_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle,xin3liang/platform_external_chromium_org_third_party_angle,spurious/angle-mirror,MIPS/external-chromium_org-third_party-angle,MIPS/external-chromium_org-third_party-angle,Mustaavalkosta/android_external_angle,spurious/angle-mirror,spurious/angle-mirror,Mustaavalkosta/android_external_angle,jgcaaprom/android_external_chromium_org_third_party_angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,adobe/angle.js,geekboxzone/lollipop_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle,jgcaaprom/android_external_chromium_org_third_party_angle,jgcaaprom/android_external_chromium_org_third_party_angle,jgcaaprom/android_external_chromium_org_third_party_angle,dumganhar/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,dumganhar/angleproject