Fetch unspecified textures on a delay

This fixes an abort caused by the assertion
in ResourceCache::getResource: assert(delayLoad).
This commit is contained in:
Zach Pomerantz 2016-03-01 18:53:46 -08:00
parent d615e2e83b
commit 1e925d7bd8

View file

@ -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<NetworkTexture>();
return ResourceCache::getResource(url, QUrl(), content.isEmpty(), &extra).staticCast<NetworkTexture>();
}
/// Returns a texture version of an image file