Browse Source

Fixed WebGLRenderer aspect ratio bug when there is only one shader.

Mr.doob 14 years ago
parent
commit
90fc8e8790
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/renderers/WebGLRenderer.js

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -1442,10 +1442,10 @@ THREE.WebGLRenderer = function ( parameters ) {
 			_gl.useProgram( program );
 			_gl.useProgram( program );
 			_oldProgram = program;
 			_oldProgram = program;
 
 
-			_gl.uniformMatrix4fv( p_uniforms.projectionMatrix, false, _projectionMatrixArray );
-
 		}
 		}
 
 
+		_gl.uniformMatrix4fv( p_uniforms.projectionMatrix, false, _projectionMatrixArray );
+
 		// refresh uniforms common to several materials
 		// refresh uniforms common to several materials
 
 
 		if ( fog && (
 		if ( fog && (