Sfoglia il codice sorgente

Let WebGLProgram skip redundant warning on error.

tschw 10 anni fa
parent
commit
c1c13c4cc0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 );
 			console.warn( 'THREE.WebGLProgram: gl.getProgramInfoLog()', programLogInfo );