Skip to content

Commit

Permalink
Do not include vk xlib headers from vulkan.h when SLANG_ENABLE_XLIB i…
Browse files Browse the repository at this point in the history
…s not set (#4593)
  • Loading branch information
expipiplus1 authored Jul 10, 2024
1 parent c06cc09 commit ca0181f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/gfx/vulkan/vk-module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca0181f

Please sign in to comment.