diff --git a/packages/core/src/textures/Texture.js b/packages/core/src/textures/Texture.js index 0878194..a250006 100644 --- a/packages/core/src/textures/Texture.js +++ b/packages/core/src/textures/Texture.js @@ -299,11 +299,6 @@ if (typeof source === 'string') { cacheId = source; - - if (!options.resolution) - { - options.resolution = getResolutionOfUrl(source); - } } else { @@ -319,6 +314,11 @@ if (!texture) { + if (!options.resolution) + { + options.resolution = getResolutionOfUrl(source); + } + texture = new Texture(new BaseTexture(source, options)); texture.baseTexture.cacheId = cacheId;