|
@@ -8411,8 +8411,7 @@
|
|
var TYPED_ARRAYS = {
|
|
var TYPED_ARRAYS = {
|
|
Int8Array: Int8Array,
|
|
Int8Array: Int8Array,
|
|
Uint8Array: Uint8Array,
|
|
Uint8Array: Uint8Array,
|
|
- // Workaround for IE11 pre KB2929437. See #11440
|
|
|
|
- Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array,
|
|
|
|
|
|
+ Uint8ClampedArray: Uint8ClampedArray,
|
|
Int16Array: Int16Array,
|
|
Int16Array: Int16Array,
|
|
Uint16Array: Uint16Array,
|
|
Uint16Array: Uint16Array,
|
|
Int32Array: Int32Array,
|
|
Int32Array: Int32Array,
|
|
@@ -16300,9 +16299,8 @@
|
|
function generateMipmap(target, texture, width, height) {
|
|
function generateMipmap(target, texture, width, height) {
|
|
_gl.generateMipmap(target);
|
|
_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) {
|
|
function getInternalFormat(internalFormatName, glFormat, glType) {
|