From b959afe8c2937e088ed070e3bb8d7ec2ef72e6a0 Mon Sep 17 00:00:00 2001 From: IlushaShurupov Date: Sun, 20 Aug 2023 19:42:22 +0300 Subject: [PATCH] Enable docking --- Graphics/private/bindings/DebugGUI.cpp | 3 +++ 1 file changed, 3 insertions(+) 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");