mirror of
https://github.com/servo/servo.git
synced 2025-07-13 10:23:40 +01:00
webgl: Allow enable/disable of STENCIL_TEST
This commit is contained in:
parent
384e905be2
commit
c6f73a612a
2 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue