Backends: Vulkan: Define NOMINMAX when VK_USE_PLATFORM_WIN32_KHR is defined. (#7250)

This commit is contained in:
Frank McCoy 2024-01-22 01:03:46 -08:00 committed by ocornut
parent 788747f863
commit 15908502ed
1 changed files with 5 additions and 0 deletions

View File

@ -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!]