瀏覽代碼

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

zregos 8 年之前
父節點
當前提交
022ae88ef6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 
 		}
@@ -641,6 +640,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 		}
 
+		currentBlending = blending;
 	}
 
 	function setMaterial( material ) {