Only update GuiView::UpdateRenderable (which calls imGui::EndFrame
internally) when we want to render the GUI to the same target as the scene. PiperOrigin-RevId: 862647358 Change-Id: If3656032b74a168b804dfa34ef3eb97c9817c2c0
This commit is contained in:
committed by
Copybara-Service
parent
57b5ebc92b
commit
f6796f36b2
@@ -144,7 +144,7 @@ void FilamentContext::Render(const mjrRect& viewport, const mjvScene* scene,
|
||||
scene_view_->UpdateScene(con, scene);
|
||||
// Update the UX renderable entity after processing the scene in case there
|
||||
// are any elements in the scene which generate UX draw calls (e.g. labels).
|
||||
if (gui_view_) {
|
||||
if (gui_view_ && gui_swap_chain_target_ == scene_swap_chain_target_) {
|
||||
// Prepare the filament Renderable that contains the GUI draw commands. We
|
||||
// must call this function even if we do not plan on rendering the GUI to
|
||||
// ensure the ImGui state is updated.
|
||||
|
||||
Reference in New Issue
Block a user