godot/thirdparty/vulkan/patches/VMA-use-godot-vulkan.patch
Gergely Kis c3a277097a
Move Vulkan includes to a central godot_vulkan.h header
Also fixes Vulkan build problem with recent Clang.

(cherry picked from commit 146ba4106f)
2025-10-29 12:12:19 +01:00

15 lines
468 B
Diff

diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
index 6819219b00..0cde2e2172 100644
--- a/thirdparty/vulkan/vk_mem_alloc.h
+++ b/thirdparty/vulkan/vk_mem_alloc.h
@@ -121,9 +121,7 @@ for user-defined purpose without allocating any real GPU memory.
See documentation chapter: \ref statistics.
*/
-#ifndef VULKAN_H_
- #include <vulkan/vulkan.h>
-#endif
+#include "drivers/vulkan/godot_vulkan.h"
#ifdef __cplusplus
extern "C" {