fix interstitial domain loading due to bad texture url

This commit is contained in:
Dante Ruiz 2018-11-01 09:25:46 -07:00
parent b3539b101b
commit a4b345bb58

View file

@ -551,7 +551,7 @@ graphics::TextureMapPointer NetworkMaterial::fetchTextureMap(const QUrl& baseUrl
graphics::TextureMapPointer NetworkMaterial::fetchTextureMap(const QUrl& url, image::TextureUsage::Type type, MapChannel channel) { graphics::TextureMapPointer NetworkMaterial::fetchTextureMap(const QUrl& url, image::TextureUsage::Type type, MapChannel channel) {
auto textureCache = DependencyManager::get<TextureCache>(); auto textureCache = DependencyManager::get<TextureCache>();
if (textureCache) { if (textureCache && !url.isEmpty()) {
auto texture = textureCache->getTexture(url, type); auto texture = textureCache->getTexture(url, type);
_textures[channel].texture = texture; _textures[channel].texture = texture;