From d253b9ccdebd50dbc7061a646f430b45480a0d12 Mon Sep 17 00:00:00 2001 From: yangdonglai Date: Wed, 14 Mar 2018 17:23:12 +0800 Subject: [PATCH] context.setStencilMode func has bug stencilMode.func --> stencilMode.test.func --- src/gl/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);