Browse Source

WebGLState: Clearer setBlending(). See #11752.

Mr.doob 8 years ago
parent
commit
0384493e2a
1 changed files with 2 additions and 3 deletions
  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 ) {