Explorar o código

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

fallenoak %!s(int64=9) %!d(string=hai) anos
pai
achega
ea22d56be0
Modificáronse 1 ficheiros con 8 adicións e 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;
 
 		}