Fix error in Dictionary construction for ScreenSpaceRenderable

Do not access the std::future for cases where a download is not necessary
This commit is contained in:
Alexander Bock
2016-07-03 14:34:17 +02:00
parent e40d393824
commit 20d0fb8474
4 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ void ScreenSpaceImage::render() {
}
void ScreenSpaceImage::update() {
bool futureReady = DownloadManager::futureReady(_futureImage);
if (_downloadImage && _futureImage.valid() && futureReady) {
bool download = _downloadImage ? (_futureImage.valid() && DownloadManager::futureReady(_futureImage)) : true;
if (download) {
loadTexture();
}
}