2
0
Эх сурвалжийг харах

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

fallenoak 9 жил өмнө
parent
commit
ea22d56be0

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

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