diff --git a/Source/Scene/Material.js b/Source/Scene/Material.js index 6d7dd1d1456b..87d761ad3568 100644 --- a/Source/Scene/Material.js +++ b/Source/Scene/Material.js @@ -791,10 +791,8 @@ define([ } if (uniformValue !== material._texturePaths[uniformId]) { - if (typeof uniformValue === 'string') { - var resource = new Resource({ - url: uniformValue - }); + if (typeof uniformValue === 'string' || uniformValue instanceof Resource) { + var resource = Resource.createIfNeeded(uniformValue); var promise; if (ktxRegex.test(uniformValue)) { promise = loadKTX(resource);