diff --git a/packages/core/src/textures/Texture.js b/packages/core/src/textures/Texture.js index 237dec3..902a6bd 100644 --- a/packages/core/src/textures/Texture.js +++ b/packages/core/src/textures/Texture.js @@ -279,13 +279,18 @@ * @param {object} [options] See {@link PIXI.BaseTexture}'s constructor for options. * @return {PIXI.Texture} The newly created texture */ - static from(source, options) + static from(source, options = {}) { let cacheId = null; if (typeof source === 'string') { cacheId = source; + + if (!options.resolution) + { + options.resolution = getResolutionOfUrl(source); + } } else {