소스 검색

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;
 
 		}