Browse Source

add comment

aardgoose 7 years ago
parent
commit
ee77cf32a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/webgl/WebGLTextures.js

+ 2 - 0
src/renderers/webgl/WebGLTextures.js

@@ -93,6 +93,8 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		_gl.generateMipmap( target );
 
 		var textureProperties = properties.get( texture );
+
+		// Note: Math.log( x ) * Math.LOG2E used instead of Math.log2( x ) which is not supported by IE11
 		textureProperties.__maxMipLevel = Math.log( Math.max( width, height ) ) * Math.LOG2E;
 
 	}