Browse Source

restore old fallthrough behavior for blending modes not recognized.

Ben Houston 9 years ago
parent
commit
0f1e9b4331
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/renderers/webgl/WebGLState.js

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

@@ -250,16 +250,11 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 				gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
 				gl.blendFuncSeparate( gl.ZERO, gl.ZERO, gl.SRC_COLOR, gl.SRC_ALPHA );
 
-			} else if( blending === THREE.NormalBlending || blending === THREE.NoBlending ) {
+			} else {
 
 				gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
 				gl.blendFuncSeparate( gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA );
 
-			}
-			else {
-
-				console.error( "Unsupported blending type: " + blending );
-
 			}
 
 			currentBlending = blending;