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

(cherry picked from commit 146ba4106f)
2024-12-16 12:54:44 +01:00

15 lines
522 B
Diff

diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
index 1add7278b0..1e03339ecf 100644
--- a/thirdparty/vulkan/vk_mem_alloc.h
+++ b/thirdparty/vulkan/vk_mem_alloc.h
@@ -126,9 +126,7 @@ See documentation chapter: \ref statistics.
extern "C" {
#endif
-#ifndef VULKAN_H_
- #include <vulkan/vulkan.h>
-#endif
+#include "drivers/vulkan/godot_vulkan.h"
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,
// where AAA = major, BBB = minor, CCC = patch.