diff --git a/src/gl/context.js b/src/gl/context.js index e5f264d1428..655b6238501 100644 --- a/src/gl/context.js +++ b/src/gl/context.js @@ -172,7 +172,7 @@ class Context { } setStencilMode(stencilMode: $ReadOnly) { - if (stencilMode.func === this.gl.ALWAYS && !stencilMode.mask) { + if (stencilMode.test.func === this.gl.ALWAYS && !stencilMode.mask) { this.stencilTest.set(false); } else { this.stencilTest.set(true);