소스 검색

WebGLState: Clearer setBlending(). See #11752.

Mr.doob 8 년 전
부모
커밋
0384493e2a
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/renderers/webgl/WebGLState.js

+ 2 - 3
src/renderers/webgl/WebGLState.js

@@ -599,8 +599,6 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 			}
 
-			currentPremultipledAlpha = premultipliedAlpha;
-
 		}
 
 		if ( blending === CustomBlending ) {
@@ -641,7 +639,8 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 		}
 
 		currentBlending = blending;
-		
+		currentPremultipledAlpha = premultipliedAlpha;
+
 	}
 
 	function setMaterial( material ) {