From 55863dd274cc4b9deff3ff5e2cbcf021f90580cf Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 12 Nov 2016 17:49:59 +0100 Subject: [PATCH] Examples: Vulkan: Shallow stylistic changes (following #879) --- .../vulkan_example/imgui_impl_glfw_vulkan.cpp | 54 ++++++------------- .../vulkan_example/imgui_impl_glfw_vulkan.h | 2 + examples/vulkan_example/main.cpp | 10 ++-- 3 files changed, 23 insertions(+), 43 deletions(-) diff --git a/examples/vulkan_example/imgui_impl_glfw_vulkan.cpp b/examples/vulkan_example/imgui_impl_glfw_vulkan.cpp index 348ab5596..838e75e91 100644 --- a/examples/vulkan_example/imgui_impl_glfw_vulkan.cpp +++ b/examples/vulkan_example/imgui_impl_glfw_vulkan.cpp @@ -1,4 +1,6 @@ // ImGui GLFW binding with Vulkan + shaders +// FIXME: Changes of ImTextureID aren't supported by this binding! Please, someone add it! + // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. // If you use this binding you'll need to call 5 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXX_CreateFontsTexture(), ImGui_ImplXXXX_NewFrame(), ImGui_ImplXXXX_Render() and ImGui_ImplXXXX_Shutdown(). // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. @@ -713,47 +715,22 @@ void ImGui_ImplGlfwVulkan_InvalidateFontUploadObjects() void ImGui_ImplGlfwVulkan_InvalidateDeviceObjects() { ImGui_ImplGlfwVulkan_InvalidateFontUploadObjects(); - for (int i=0; i