mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:43:27 +02:00
Fix BillboardOverlay breaking when changing url
This commit is contained in:
parent
cefb7be51d
commit
8ebf34e93f
1 changed files with 2 additions and 2 deletions
|
@ -53,12 +53,12 @@ void BillboardOverlay::update(float deltatime) {
|
|||
}
|
||||
|
||||
void BillboardOverlay::render(RenderArgs* args) {
|
||||
if (!_texture) {
|
||||
if (!_isLoaded) {
|
||||
_isLoaded = true;
|
||||
_texture = DependencyManager::get<TextureCache>()->getTexture(_url);
|
||||
}
|
||||
|
||||
if (!_visible || !_texture || !_texture->isLoaded()) {
|
||||
if (!_visible || !_texture->isLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue