Browse Source

Fix for potential missing update of current blending mode variable in setBlending()

zregos 8 years ago
parent
commit
022ae88ef6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLState.js

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

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