Browse Source

Merge pull request #11752 from zrgs/dev

Fix for potential missing update of current blending mode variable in…
Mr.doob 8 years ago
parent
commit
a9633a5800
1 changed files with 2 additions and 1 deletions
  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 ) {