mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:25:52 +02:00
Add check in BillboardOverlay::render to make sure _texture is valid
This commit is contained in:
parent
8ebf34e93f
commit
dd2c0be2d2
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ void BillboardOverlay::render(RenderArgs* args) {
|
|||
_texture = DependencyManager::get<TextureCache>()->getTexture(_url);
|
||||
}
|
||||
|
||||
if (!_visible || !_texture->isLoaded()) {
|
||||
if (!_visible || !_texture || !_texture->isLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue