Don't do GUI rendering when rendering to texture.

PiperOrigin-RevId: 842089364
Change-Id: Iaecebdc677e946c7fc618395205097462a56f2d1
This commit is contained in:
Haroon Qureshi
2025-12-08 23:43:57 -08:00
committed by Copybara-Service
parent 735b31fc89
commit 99a90cb649
@@ -145,7 +145,7 @@ void FilamentContext::Render(const mjrRect& viewport, const mjvScene* scene,
// Draw the GUI. We do this after processing the scene in case there are any
// label elements in the scene.
if (gui_view_) {
if (gui_view_ && !render_to_texture_) {
DrawGui(scene_view_.get());
// Prepare the filament Renderable that contains the GUI draw commands. We