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;