Removes default loadType from the spritesheetParser load options (#4573)
Assuming a loadType of Resource.LOAD_TYPE.IMAGE conflicts with the ability to load an image which can't be loaded via the <image> tag.  This happens in the case of loading a compressed image which should be handled by the XmlHttpRequest file loader as an array buffer type.  In the resource loader, there is already a lookup to determine the load type: https://github.com/englercj/resource-loader/blob/master/src/Resource.js#L126
In the case of a binary image asset, the spritesheetParser's loadType stomps on a dynamic lookup based on filetype.
1 parent cba512d commit 610575d2812648f3941d7b7da4a4d045619b135e
@mbittarelli-jibo mbittarelli-jibo authored on 4 Jan 2018
Matt Karl committed on 4 Jan 2018
Showing 4 changed files
View
src/loaders/spritesheetParser.js
View
test/loaders/resources/atlas.crn 0 → 100644
Not supported
View
test/loaders/resources/atlas_crn.json 0 → 100644
View
test/loaders/spritesheetParser.js