mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 03:53:34 +02:00
Merge pull request #10290 from samcake/hotfix
Build 37.2 Hotfix to fix a crash with texture loading and Qt build 5.6.2
This commit is contained in:
commit
3b839d3f9b
1 changed files with 4 additions and 1 deletions
|
@ -559,9 +559,12 @@ void ImageReader::read() {
|
|||
// Load the image into a gpu::Texture
|
||||
auto networkTexture = resource.staticCast<NetworkTexture>();
|
||||
texture.reset(networkTexture->getTextureLoader()(image, url));
|
||||
texture->setSource(url);
|
||||
if (texture) {
|
||||
texture->setSource(url);
|
||||
texture->setFallbackTexture(networkTexture->getFallbackTexture());
|
||||
} else {
|
||||
qCDebug(modelnetworking) << _url << "loading stopped; texture wasn't created";
|
||||
return;
|
||||
}
|
||||
|
||||
auto textureCache = DependencyManager::get<TextureCache>();
|
||||
|
|
Loading…
Reference in a new issue