From feb25f8d71bf91b8b2fba8c7ebb1f8d23229eb09 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 16 Mar 2023 18:23:01 +0000 Subject: [PATCH] Don't need this part any more --- src/display/mask/GeometryMask.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/display/mask/GeometryMask.js b/src/display/mask/GeometryMask.js index 476631ed0..edce041c5 100644 --- a/src/display/mask/GeometryMask.js +++ b/src/display/mask/GeometryMask.js @@ -203,18 +203,7 @@ var GeometryMask = new Class({ gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP); - if (inc) - { - if (this.invertAlpha) - { - gl.stencilFunc(gl.NOTEQUAL, level, mask); - } - else - { - gl.stencilFunc(gl.EQUAL, level, mask); - } - } - else if (this.invertAlpha) + if (this.invertAlpha) { gl.stencilFunc(gl.NOTEQUAL, level, mask); }