Fixed issue #192 with hardcoded VK_USE_PLATFORM_WIN32_KHR

This commit is contained in:
Sergey Kosarevsky 2021-09-20 15:11:21 +03:00
parent 92e5f2eb8f
commit 73f3aed74d
2 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,9 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#if !defined(VK_USE_PLATFORM_WIN32_KHR)
#define VK_USE_PLATFORM_WIN32_KHR #define VK_USE_PLATFORM_WIN32_KHR
#endif // #if !defined(VK_USE_PLATFORM_WIN32_KHR)
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
//#define VMA_USE_STL_CONTAINERS 1 //#define VMA_USE_STL_CONTAINERS 1

View File

@ -28,7 +28,9 @@
#define NOMINMAX #define NOMINMAX
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#if !defined(VK_USE_PLATFORM_WIN32_KHR)
#define VK_USE_PLATFORM_WIN32_KHR #define VK_USE_PLATFORM_WIN32_KHR
#endif // #if !defined(VK_USE_PLATFORM_WIN32_KHR)
#else // #ifdef _WIN32 #else // #ifdef _WIN32