summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-07-10 15:19:15 +0800
committerGitHub <noreply@github.com>2024-07-10 15:19:15 +0800
commitca0181f85ae9695b5d5b6deab5369cea7e0a0fc6 (patch)
tree892f2f5b593db32217caf1eb07a6f541ce0f09a8 /tools
parentc06cc09497fd9f99a36f7fe524ed51604dbc60c5 (diff)
Do not include vk xlib headers from vulkan.h when SLANG_ENABLE_XLIB is not set (#4593)
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/vulkan/vk-module.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gfx/vulkan/vk-module.h b/tools/gfx/vulkan/vk-module.h
index 4677bbe50..062c953f6 100644
--- a/tools/gfx/vulkan/vk-module.h
+++ b/tools/gfx/vulkan/vk-module.h
@@ -10,7 +10,9 @@
#elif SLANG_APPLE_FAMILY
# define VK_USE_PLATFORM_METAL_EXT 1
#else
-# define VK_USE_PLATFORM_XLIB_KHR 1
+# if SLANG_ENABLE_XLIB
+# define VK_USE_PLATFORM_XLIB_KHR 1
+# endif
#endif
#define VK_NO_PROTOTYPES