vkmemalloc: Disable SRWLOCK for mingw
...until some day someone investigates what is exactly the problem with the sdk that ships with mingw. Task-number: QTBUG-76424 Change-Id: I64869a4fbb07a64cfc1430234d732e143fefe720 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
55240bcdf3
commit
b17e05729e
13
src/3rdparty/VulkanMemoryAllocator/patches/0003-Disable-srwlock-for-mingw.patch
vendored
Normal file
13
src/3rdparty/VulkanMemoryAllocator/patches/0003-Disable-srwlock-for-mingw.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h b/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
|
||||
index f043bdc289..2355de091f 100644
|
||||
--- a/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
|
||||
+++ b/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
|
||||
@@ -3298,7 +3298,7 @@ void *aligned_alloc(size_t alignment, size_t size)
|
||||
std::shared_mutex m_Mutex;
|
||||
};
|
||||
#define VMA_RW_MUTEX VmaRWMutex
|
||||
- #elif defined(_WIN32)
|
||||
+ #elif defined(_WIN32) && !defined(__MINGW32__)
|
||||
// Use SRWLOCK from WinAPI.
|
||||
class VmaRWMutex
|
||||
{
|
@ -3298,7 +3298,7 @@ void *aligned_alloc(size_t alignment, size_t size)
|
||||
std::shared_mutex m_Mutex;
|
||||
};
|
||||
#define VMA_RW_MUTEX VmaRWMutex
|
||||
#elif defined(_WIN32)
|
||||
#elif defined(_WIN32) && !defined(__MINGW32__)
|
||||
// Use SRWLOCK from WinAPI.
|
||||
class VmaRWMutex
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user