Explorar o código

Merge pull request #11752 from zrgs/dev

Fix for potential missing update of current blending mode variable in…
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
a9633a5800
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/renderers/webgl/WebGLState.js

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

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