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:
Adam Sawicki 2018-12-06 14:47:59 +01:00
parent 3b392258e2
commit e8b01485ce
2 changed files with 5 additions and 2 deletions

View File

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

View File

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