summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp
index ec3ddf4..569ae54 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -877,6 +877,10 @@ void CreateSyncObjects() {
void CreateImGui() {
IMGUI_CHECKVERSION();
ImGui::CreateContext();
+ ImGuiIO& io = ImGui::GetIO(); (void)io;
+ io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
+ io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
+ io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
ImGui::StyleColorsDark();
VkDescriptorPoolSize poolSizes[] = {
@@ -902,11 +906,7 @@ void CreateImGui() {
vkCreateDescriptorPool(vkDevice, &descriptorPoolCreateInfo, vkAllocator, &imGuiDescriptorPool);
- ImGui_ImplGlfw_InitForVulkan(window, false);
- /*
- ImGui_ImplGlfw_InstallCallbacks(window);
- */
-
+ ImGui_ImplGlfw_InitForVulkan(window, true);
ImGui_ImplVulkan_InitInfo initInfo{};
initInfo.Allocator = vkAllocator;
initInfo.CheckVkResultFn = ImGuiCheckVkResult;