Browse Source

Fix missing state reset on NoBlending (#9564) (#9839)

fallenoak 8 years ago
parent
commit
ea22d56be0
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/renderers/webgl/WebGLState.js

+ 8 - 0
src/renderers/webgl/WebGLState.js

@@ -509,7 +509,15 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 		} else {
 
 			disable( gl.BLEND );
+
 			currentBlending = blending; // no blending, that is
+			currentBlendEquation = null;
+			currentBlendSrc = null;
+			currentBlendDst = null;
+			currentBlendEquationAlpha = null;
+			currentBlendSrcAlpha = null;
+			currentBlendDstAlpha = null;
+
 			return;
 
 		}