Bläddra i källkod

[WebGLTextures.makePowerOfTwo] avoid memory leaks

Andrew Cherniavskii 7 år sedan
förälder
incheckning
1149de7eaa
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

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

@@ -64,7 +64,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 			var context = _canvas.getContext( '2d' );
 			var context = _canvas.getContext( '2d' );
 			context.drawImage( image, 0, 0, _canvas.width, _canvas.height );
 			context.drawImage( image, 0, 0, _canvas.width, _canvas.height );
 
 
-			console.warn( 'THREE.WebGLRenderer: image is not power of two (' + image.width + 'x' + image.height + '). Resized to ' + _canvas.width + 'x' + _canvas.height, image );
+			console.warn( 'THREE.WebGLRenderer: image is not power of two (' + image.width + 'x' + image.height + '). Resized to ' + _canvas.width + 'x' + _canvas.height );
 
 
 			return _canvas;
 			return _canvas;