From 88e75cd7e66289347c90418d6467ab77464d0856 Mon Sep 17 00:00:00 2001 From: Matija Kecman Date: Tue, 11 Nov 2025 03:50:31 -0800 Subject: [PATCH] Remove implot from toolbox/window.cc PiperOrigin-RevId: 830842619 Change-Id: I39d13508423ad0ba1e12349ceaccab2425d28243 --- src/experimental/studio/app.cc | 1 + src/experimental/toolbox/window.cc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/experimental/studio/app.cc b/src/experimental/studio/app.cc index afab5dcf..be56a585 100644 --- a/src/experimental/studio/app.cc +++ b/src/experimental/studio/app.cc @@ -119,6 +119,7 @@ App::App(int width, int height, std::string ini_path, : ini_path_(std::move(ini_path)), load_asset_fn_(load_asset_fn) { window_ = std::make_unique("MuJoCo Studio", width, height, kWindowConfig, load_asset_fn); + ImPlot::CreateContext(); auto make_context_fn = [&](const mjModel* m, mjrContext* con) { #if defined(USE_CLASSIC_OPENGL) diff --git a/src/experimental/toolbox/window.cc b/src/experimental/toolbox/window.cc index 9c239b04..052beeec 100644 --- a/src/experimental/toolbox/window.cc +++ b/src/experimental/toolbox/window.cc @@ -26,7 +26,6 @@ #include #include #include -#include #include "experimental/toolbox/helpers.h" #include @@ -39,7 +38,6 @@ namespace mujoco::toolbox { static void InitImGui(SDL_Window* window, const LoadAssetFn& load_asset_fn) { ImGui::CreateContext(); - ImPlot::CreateContext(); ImGuiIO& io = ImGui::GetIO(); io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;