Explorar el Código

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

fallenoak hace 9 años
padre
commit
ea22d56be0
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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;
 
 		}