Skip to content

Commit

Permalink
Merge remote-tracking branch 'photonstorm/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Apr 19, 2017
2 parents f23760d + 7609d05 commit b2ea625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -266,6 +266,7 @@ If you code with [TypeScript](http://www.typescriptlang.org/) there are comprehe

### Bug Fixes

* Fixed loading of compressed textures (#17, #162)
* Removed `any` key in [Phaser.Physics.Arcade.Body#checkCollision](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#checkCollision). It was never used, so setting it had no effect (#161). Use `!checkCollision.none` instead.
* Fixed Phaser.Sound exception when using IE with AudioTag and high volume values (#157), from now on volume clamping happens in every AudioTag supported browser.
* Fixed incorrect [worldScale](https://photonstorm.github.io/phaser-ce/PIXI.DisplayObject.html#worldScale) calculation (#15)
Expand Down
9 changes: 7 additions & 2 deletions src/loader/Loader.js
Expand Up @@ -2315,6 +2315,10 @@ Phaser.Loader.prototype = {
{
this.loadImageTag(file);
}
else
{
this.xhrLoad(file, this.transformUrl(file.url, file), 'arraybuffer', this.fileComplete);
}
break;

case 'binary':
Expand Down Expand Up @@ -2795,13 +2799,14 @@ Phaser.Loader.prototype = {

case 'texture':

var extension = /\.([^.]+)$/.exec(file.url.split('?', 1)[0])[1].toLowerCase();
if (file.data !== null)
{
this.cache.addCompressedTextureMetaData(file.key, file.url, file.url.split('.').pop().toLowerCase(), file.data);
this.cache.addCompressedTextureMetaData(file.key, file.url, extension, file.data);
}
else
{
this.cache.addCompressedTextureMetaData(file.key, file.url, file.url.split('.').pop().toLowerCase(), xhr.response);
this.cache.addCompressedTextureMetaData(file.key, file.url, extension, xhr.response);
}
break;

Expand Down

0 comments on commit b2ea625

Please sign in to comment.