Files
MINGW-packages/mingw-w64-angleproject/005-vulkan-memory-allocator-updates.patch
Raed Rizqie 59ad237f65 angleproject: update to 2.1.r21358
- enable vulkan backend
- linked with internal vulkan statically
2023-07-13 10:36:34 +05:30

39 lines
1.2 KiB
Diff

diff --git a/BUILD.gn b/BUILD.gn
index 97aab3a..4b1ddd6 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -22,7 +22,7 @@ config("vulkan_memory_allocator_config") {
"-Wno-unused-variable",
]
}
- if (is_win && !is_clang) {
+ if (is_msvs && !is_clang) {
cflags_cc = [
"/wd4189", # local variable is initialized but not referenced
]
diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h
index 8091bae..cb49117 100644
--- a/include/vk_mem_alloc.h
+++ b/include/vk_mem_alloc.h
@@ -2485,6 +2485,7 @@ remove them if not needed.
#include <cassert> // for assert
#include <algorithm> // for min, max
#include <mutex>
+#include <cstdio> // for snprintf
#ifndef VMA_NULL
// Value used as null pointer. Define it to e.g.: nullptr, NULL, 0, (void*)0.
diff --git a/vulkan_memory_allocator.gni b/vulkan_memory_allocator.gni
index 4aa2d79..0cf24b2 100644
--- a/vulkan_memory_allocator.gni
+++ b/vulkan_memory_allocator.gni
@@ -26,7 +26,7 @@ template("vulkan_memory_allocator") {
"-Wno-unused-variable",
]
}
- if (is_win && !is_clang) {
+ if (is_msvs && !is_clang) {
cflags_cc = [
"/wd4189", # local variable is initialized but not referenced
]