mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-09-20 06:32:16 +00:00
Small change not to #include <vulkan/vulkan.h> if it was already included (possible from a different path) before including VMA. Issue #50 Thanks @baldurk !
This commit is contained in:
parent
3b392258e2
commit
e8b01485ce
@ -8,7 +8,8 @@
|
||||
#include <Windows.h>
|
||||
#define VK_USE_PLATFORM_WIN32_KHR
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
// Uncomment to test including `vulkan.h` on your own before including VMA.
|
||||
//#include <vulkan/vulkan.h>
|
||||
|
||||
/*
|
||||
In every place where you want to use Vulkan Memory Allocator, define appropriate
|
||||
|
@ -1492,7 +1492,9 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
|
||||
#define NOMINMAX // For windows.h
|
||||
#endif
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#ifndef VULKAN_H_
|
||||
#include <vulkan/vulkan.h>
|
||||
#endif
|
||||
|
||||
#if VMA_RECORDING_ENABLED
|
||||
#include <windows.h>
|
||||
|
Loading…
Reference in New Issue
Block a user