Remove SAMPLE_COVERAGE_INVERT from WebGLRenderingContext::validate_feature_enum

This constant is not mentioned in the docs of glEnable or glIsEnabled.
This commit is contained in:
Anthony Ramine 2018-04-04 17:49:22 +02:00
parent 1881c09a9c
commit 91d07a27db

View file

@ -1113,7 +1113,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 | constants::STENCIL_TEST => true,
constants::SCISSOR_TEST | constants::STENCIL_TEST => true,
_ => {
self.webgl_error(InvalidEnum);
false