|
@@ -206,7 +206,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
|
|
var currentStencilFunc = null;
|
|
var currentStencilFunc = null;
|
|
var currentStencilRef = null;
|
|
var currentStencilRef = null;
|
|
var currentStencilFuncMask = null;
|
|
var currentStencilFuncMask = null;
|
|
- var currentStencilFail = null;
|
|
|
|
|
|
+ var currentStencilFail = null;
|
|
var currentStencilZFail = null;
|
|
var currentStencilZFail = null;
|
|
var currentStencilZPass = null;
|
|
var currentStencilZPass = null;
|
|
var currentStencilClear = null;
|
|
var currentStencilClear = null;
|
|
@@ -244,10 +244,10 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
|
|
currentStencilRef !== stencilRef ||
|
|
currentStencilRef !== stencilRef ||
|
|
currentStencilFuncMask !== stencilMask ) {
|
|
currentStencilFuncMask !== stencilMask ) {
|
|
|
|
|
|
- gl.stencilFunc( stencilFunc, stencilRef, stencilMask );
|
|
|
|
|
|
+ gl.stencilFunc( stencilFunc, stencilRef, stencilMask );
|
|
|
|
|
|
currentStencilFunc = stencilFunc;
|
|
currentStencilFunc = stencilFunc;
|
|
- currentStencilRef = stencilRef;
|
|
|
|
|
|
+ currentStencilRef = stencilRef;
|
|
currentStencilFuncMask = stencilMask;
|
|
currentStencilFuncMask = stencilMask;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -260,9 +260,9 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
|
|
currentStencilZFail !== stencilZFail ||
|
|
currentStencilZFail !== stencilZFail ||
|
|
currentStencilZPass !== stencilZPass ) {
|
|
currentStencilZPass !== stencilZPass ) {
|
|
|
|
|
|
- gl.stencilOp( stencilFail, stencilZFail, stencilZPass );
|
|
|
|
|
|
+ gl.stencilOp( stencilFail, stencilZFail, stencilZPass );
|
|
|
|
|
|
- currentStencilFail = stencilFail;
|
|
|
|
|
|
+ currentStencilFail = stencilFail;
|
|
currentStencilZFail = stencilZFail;
|
|
currentStencilZFail = stencilZFail;
|
|
currentStencilZPass = stencilZPass;
|
|
currentStencilZPass = stencilZPass;
|
|
|
|
|