Browse Source

MTLLoader: Typo in isPowerOfTwo call.

Mr.doob 11 years ago
parent
commit
a44caeb28d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/MTLLoader.js

+ 1 - 1
examples/js/loaders/MTLLoader.js

@@ -395,7 +395,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
 
 
 THREE.MTLLoader.ensurePowerOfTwo_ = function ( image ) {
 THREE.MTLLoader.ensurePowerOfTwo_ = function ( image ) {
 
 
-	if ( ! THREE.Math.isPowerOfTwo_( image.width ) || ! THREE.Math.isPowerOfTwo_( image.height ) ) {
+	if ( ! THREE.Math.isPowerOfTwo( image.width ) || ! THREE.Math.isPowerOfTwo( image.height ) ) {
 
 
 		var canvas = document.createElement( "canvas" );
 		var canvas = document.createElement( "canvas" );
 		canvas.width = THREE.MTLLoader.nextHighestPowerOfTwo_( image.width );
 		canvas.width = THREE.MTLLoader.nextHighestPowerOfTwo_( image.width );