Skip to content

Commit

Permalink
Fix bug in context.setStencilMode
Browse files Browse the repository at this point in the history
  • Loading branch information
yangdonglai authored and Lauren Budorick committed Mar 14, 2018
1 parent 9dd1ed7 commit 867610b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class Context {
}

setStencilMode(stencilMode: $ReadOnly<StencilMode>) {
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);
Expand Down

0 comments on commit 867610b

Please sign in to comment.