Skip to content

Commit

Permalink
Backends: Vulkan: Define NOMINMAX when VK_USE_PLATFORM_WIN32_KHR is d…
Browse files Browse the repository at this point in the history
…efined. (#7250)
  • Loading branch information
jaxfrank authored and ocornut committed Jan 22, 2024
1 parent 788747f commit 1590850
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backends/imgui_impl_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES)
#define VK_NO_PROTOTYPES
#endif
#if defined(VK_USE_PLATFORM_WIN32_KHR) && !defined(NOMINMAX)
#define NOMINMAX
#include <vulkan/vulkan.h>
#else
#include <vulkan/vulkan.h>
#endif

// Initialization data, for ImGui_ImplVulkan_Init()
// [Please zero-clear before use!]
Expand Down

0 comments on commit 1590850

Please sign in to comment.