From 87adb7e5d6aa92acfb05807833a7c7fa3b6afa3b Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Thu, 16 Oct 2025 08:38:38 -0700 Subject: [PATCH] Use the ImGui OpenGL3 backend. PiperOrigin-RevId: 820249390 Change-Id: I43fc85bf75a2c01b76218a2ff67a1526ee9e2bdb --- src/experimental/studio/app.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/experimental/studio/app.cc b/src/experimental/studio/app.cc index 57210588..7df2f8eb 100644 --- a/src/experimental/studio/app.cc +++ b/src/experimental/studio/app.cc @@ -42,7 +42,7 @@ #if defined(USE_FILAMENT_OPENGL) || defined(USE_FILAMENT_VULKAN) #include "experimental/filament/render_context_filament.h" #elif defined(USE_CLASSIC_OPENGL) -#include +#include #else #error No rendering mode defined. #endif @@ -135,7 +135,7 @@ App::App(int width, int height, std::string ini_path, ClearProfilerData(); #ifdef USE_CLASSIC_OPENGL - ImGui_ImplOpenGL2_Init(); + ImGui_ImplOpenGL3_Init(); #endif } @@ -160,7 +160,7 @@ bool App::Update() { const toolbox::Window::Status status = window_->NewFrame(); #ifdef USE_CLASSIC_OPENGL - ImGui_ImplOpenGL2_NewFrame(); + ImGui_ImplOpenGL3_NewFrame(); #endif HandleMouseEvents(); @@ -197,7 +197,7 @@ void App::Render() { #ifdef USE_CLASSIC_OPENGL ImGui::Render(); - ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); #endif // This call to EndFrame() is only needed if render_config.enable_gui is false