Преглед на файлове

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

fallenoak преди 9 години
родител
ревизия
ea22d56be0
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  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;
 
 		}