From 1e925d7bd87b3cea6faa155cb2c1c9b4b55cbd7d Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Tue, 1 Mar 2016 18:53:46 -0800 Subject: [PATCH] Fetch unspecified textures on a delay This fixes an abort caused by the assertion in ResourceCache::getResource: assert(delayLoad). --- .../model-networking/src/model-networking/TextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/model-networking/src/model-networking/TextureCache.cpp b/libraries/model-networking/src/model-networking/TextureCache.cpp index a2cd3284ef..58a82d5f11 100644 --- a/libraries/model-networking/src/model-networking/TextureCache.cpp +++ b/libraries/model-networking/src/model-networking/TextureCache.cpp @@ -146,7 +146,7 @@ public: NetworkTexturePointer TextureCache::getTexture(const QUrl& url, TextureType type, const QByteArray& content) { TextureExtra extra = { type, content }; - return ResourceCache::getResource(url, QUrl(), false, &extra).staticCast(); + return ResourceCache::getResource(url, QUrl(), content.isEmpty(), &extra).staticCast(); } /// Returns a texture version of an image file