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

WebGLState: Clearer setBlending(). See #11752.

Mr.doob 8 жил өмнө
parent
commit
0384493e2a

+ 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 ) {