summaryrefslogtreecommitdiffstats
path: root/thirdparty/vulkan/loader/loader.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-09 15:23:42 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-03-09 15:25:54 +0100
commitd744d3046e755d7e92b2eeee61da8364ce885e30 (patch)
treed2dc6c865c27a707462dfd2d514891c8299adfff /thirdparty/vulkan/loader/loader.h
parent709b176db08199b4fcd6733565b09fc0d259eee7 (diff)
downloadredot-engine-d744d3046e755d7e92b2eeee61da8364ce885e30.tar.gz
vulkan: Re-add option to build Vulkan-Loader statically
Upstream removed the option in KhronosGroup/Vulkan-Loader#260, which breaks our current use case. This commit reverts KhronosGroup/Vulkan-Loader#260 is our vendored loader. We may need to re-evaluate how we link the loader, but until then, reverting this PR fixes Windows support after the upgrade to a recent SDK version in #36932.
Diffstat (limited to 'thirdparty/vulkan/loader/loader.h')
-rw-r--r--thirdparty/vulkan/loader/loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/thirdparty/vulkan/loader/loader.h b/thirdparty/vulkan/loader/loader.h
index 5e9495521b..56745a968d 100644
--- a/thirdparty/vulkan/loader/loader.h
+++ b/thirdparty/vulkan/loader/loader.h
@@ -420,6 +420,9 @@ static inline void loader_init_dispatch(void *obj, const void *data) {
// Global variables used across files
extern struct loader_struct loader;
extern THREAD_LOCAL_DECL struct loader_instance *tls_instance;
+#if defined(_WIN32) && !defined(LOADER_DYNAMIC_LIB)
+extern LOADER_PLATFORM_THREAD_ONCE_DEFINITION(once_init);
+#endif
extern loader_platform_thread_mutex loader_lock;
extern loader_platform_thread_mutex loader_json_lock;