From c6f73a612a88a01a31d2674a00f10bd8509529f9 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 1 Jan 2017 22:04:14 -0800 Subject: [PATCH] webgl: Allow enable/disable of STENCIL_TEST --- components/script/dom/webglrenderingcontext.rs | 2 +- .../conformance/state/gl-enable-enum-test.html.ini | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 tests/wpt/metadata/webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html.ini diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 7ac39c13e1f..ba1950a9ba7 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -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 diff --git a/tests/wpt/metadata/webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html.ini b/tests/wpt/metadata/webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html.ini deleted file mode 100644 index 977499e3cfe..00000000000 --- a/tests/wpt/metadata/webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html.ini +++ /dev/null @@ -1,11 +0,0 @@ -[gl-enable-enum-test.html] - type: testharness - [WebGL test #82: getError expected: NO_ERROR. Was INVALID_ENUM : gl.enable must succeed when passed gl.STENCIL_TEST] - expected: FAIL - - [WebGL test #83: gl.isEnabled(gl.STENCIL_TEST) should be true. Was false.] - expected: FAIL - - [WebGL test #85: getError expected: NO_ERROR. Was INVALID_ENUM : there should be no errors] - expected: FAIL -