提交 4d90e23c 编写于 作者: M Mr.doob

Updated builds.

上级 b4b24e31
......@@ -8411,8 +8411,7 @@
var TYPED_ARRAYS = {
Int8Array: Int8Array,
Uint8Array: Uint8Array,
// Workaround for IE11 pre KB2929437. See #11440
Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array,
Uint8ClampedArray: Uint8ClampedArray,
Int16Array: Int16Array,
Uint16Array: Uint16Array,
Int32Array: Int32Array,
......@@ -16300,9 +16299,8 @@
function generateMipmap(target, texture, width, height) {
_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;
var textureProperties = properties.get(texture);
textureProperties.__maxMipLevel = Math.log2(Math.max(width, height));
}
function getInternalFormat(internalFormatName, glFormat, glType) {
此差异已折叠。
......@@ -9523,8 +9523,7 @@ function arrayMax( array ) {
const TYPED_ARRAYS = {
Int8Array: Int8Array,
Uint8Array: Uint8Array,
// Workaround for IE11 pre KB2929437. See #11440
Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array,
Uint8ClampedArray: Uint8ClampedArray,
Int16Array: Int16Array,
Uint16Array: Uint16Array,
Int32Array: Int32Array,
......@@ -20183,8 +20182,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
const 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;
textureProperties.__maxMipLevel = Math.log2( Math.max( width, height ) );
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册