Explorar o código

Let WebGLProgram skip redundant warning on error.

tschw %!s(int64=10) %!d(string=hai) anos
pai
achega
c1c13c4cc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLProgram.js

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

@@ -389,7 +389,7 @@ THREE.WebGLProgram = ( function () {
 
 		}
 
-		if ( programLogInfo !== '' ) {
+		else if ( programLogInfo !== '' ) {
 
 			console.warn( 'THREE.WebGLProgram: gl.getProgramInfoLog()', programLogInfo );