mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user