webgl: Allow enable/disable of STENCIL_TEST

This commit is contained in:
Eric Anholt 2017-01-01 22:04:14 -08:00
parent 384e905be2
commit c6f73a612a
2 changed files with 1 additions and 12 deletions

View file

@ -552,7 +552,7 @@ impl WebGLRenderingContext {
match cap {
constants::BLEND | constants::CULL_FACE | constants::DEPTH_TEST | constants::DITHER |
constants::POLYGON_OFFSET_FILL | constants::SAMPLE_ALPHA_TO_COVERAGE | constants::SAMPLE_COVERAGE |
constants::SAMPLE_COVERAGE_INVERT | constants::SCISSOR_TEST => true,
constants::SAMPLE_COVERAGE_INVERT | constants::SCISSOR_TEST | constants::STENCIL_TEST => true,
_ => {
self.webgl_error(InvalidEnum);
false