瀏覽代碼

WebGLState: handle CustomBlending case

Fixes #11280
WestLangley 8 年之前
父節點
當前提交
999ffcf53f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/webgl/WebGLState.js

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

@@ -523,7 +523,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 		}
 
-		if ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) {
+		if ( ( blending !== CustomBlending ) && ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) ) {
 
 			if ( blending === AdditiveBlending ) {