Fix BillboardOverlay breaking when changing url

This commit is contained in:
Ryan Huffman 2015-08-06 15:15:11 -07:00
parent cefb7be51d
commit 8ebf34e93f

View file

@ -53,12 +53,12 @@ void BillboardOverlay::update(float deltatime) {
} }
void BillboardOverlay::render(RenderArgs* args) { void BillboardOverlay::render(RenderArgs* args) {
if (!_texture) { if (!_isLoaded) {
_isLoaded = true; _isLoaded = true;
_texture = DependencyManager::get<TextureCache>()->getTexture(_url); _texture = DependencyManager::get<TextureCache>()->getTexture(_url);
} }
if (!_visible || !_texture || !_texture->isLoaded()) { if (!_visible || !_texture->isLoaded()) {
return; return;
} }