浏览代码

WebGLState: Simpler fix for NoBlending issue. See #9839

Mr.doob 9 年之前
父节点
当前提交
973380c22f
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      src/renderers/webgl/WebGLState.js

+ 0 - 10
src/renderers/webgl/WebGLState.js

@@ -510,16 +510,6 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 			disable( gl.BLEND );
 
-			currentBlending = blending; // no blending, that is
-			currentBlendEquation = null;
-			currentBlendSrc = null;
-			currentBlendDst = null;
-			currentBlendEquationAlpha = null;
-			currentBlendSrcAlpha = null;
-			currentBlendDstAlpha = null;
-
-			return;
-
 		}
 
 		if ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) {