@@ -93,7 +93,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
_gl.generateMipmap( target );
var textureProperties = properties.get( texture );
- textureProperties.__maxMipLevel = Math.log2( Math.max( width, height ) );
+ textureProperties.__maxMipLevel = Math.log( Math.max( width, height ) ) * Math.LOG2E;
}