diff --git a/CHANGES.md b/CHANGES.md index 93c047450e90..f484be93c2d1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ Change Log ========== +### 1.32 - 2017-04-03 + +* Fix crunch compressed textures in IE11. [#5057](https://github.com/AnalyticalGraphicsInc/cesium/pull/5057) + ### 1.31 - 2017-03-01 * Deprecated diff --git a/Source/Workers/transcodeCRNToDXT.js b/Source/Workers/transcodeCRNToDXT.js index c1f57876e457..5f781025bc68 100644 --- a/Source/Workers/transcodeCRNToDXT.js +++ b/Source/Workers/transcodeCRNToDXT.js @@ -133,7 +133,10 @@ define([ // Mipmaps are unsupported, so copy the level 0 texture // When mipmaps are supported, a copy will still be necessary as dxtData is a view on the heap. - var level0DXTData = dxtData.slice(0, PixelFormat.compressedTextureSize(format, width, height)); + var length = PixelFormat.compressedTextureSize(format, width, height); + var level0DXTData = new Uint8Array(length); + level0DXTData.set(dxtData, 0); + transferableObjects.push(level0DXTData.buffer); return new CompressedTextureBuffer(format, width, height, level0DXTData); }