diff --git a/Graphics/private/bindings/DebugGUI.cpp b/Graphics/private/bindings/DebugGUI.cpp index 5254806..e0d075c 100644 --- a/Graphics/private/bindings/DebugGUI.cpp +++ b/Graphics/private/bindings/DebugGUI.cpp @@ -27,9 +27,12 @@ Graphics::GUI::~GUI() { void Graphics::GUI::init(Window* window) { IMGUI_CHECKVERSION(); + mContext->ctx = ImGui::CreateContext(); mContext->io = &ImGui::GetIO(); + mContext->io->ConfigFlags |= ImGuiConfigFlags_DockingEnable; + // Initialize ImGui with GLFW and OpenGL ImGui_ImplGlfw_InitForOpenGL(window->getContext()->window, true); ImGui_ImplOpenGL3_Init("#version 330");