Skip to content

Commit

Permalink
Fix crash rendering empty view without world
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Nov 19, 2024
1 parent 18f1672 commit ce68016
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/renderer/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,13 +569,15 @@ namespace vg::renderer
if (!view->IsRender())
continue;

if (IWorld * world = view->GetWorld())
auto * world = view->GetWorld();

if (nullptr != world)
{
if (!vector_helper::exists(visibleWorlds, world))
visibleWorlds.push_back(world);
}

visibleViews.push_back(view);
visibleViews.push_back(view);
}
}
}
}
Expand Down

0 comments on commit ce68016

Please sign in to comment.