mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Fix version macro not selecting VK_MAKE_VERSION
The version macro selector was looking for the constant VK_API_VERSION instead of the correct macro VK_MAKE_VERSION. Replaced the preprocessors accordingly.
This commit is contained in:
parent
b87fcf2da2
commit
b1b121efe0
@ -29,8 +29,8 @@
|
||||
|
||||
#ifdef VK_MAKE_API_VERSION
|
||||
#define VKB_MAKE_VK_VERSION(variant, major, minor, patch) VK_MAKE_API_VERSION(variant, major, minor, patch)
|
||||
#elif VK_API_VERSION
|
||||
#define VKB_MAKE_VK_VERSION(variant, major, minor, patch) VK_API_VERSION(major, minor, patch)
|
||||
#elif defined(VK_MAKE_VERSION)
|
||||
#define VKB_MAKE_VK_VERSION(variant, major, minor, patch) VK_MAKE_VERSION(major, minor, patch)
|
||||
#endif
|
||||
|
||||
#if defined(VK_API_VERSION_1_3) || defined(VK_VERSION_1_3)
|
||||
@ -876,4 +876,4 @@ template <> struct is_error_code_enum<vkb::PhysicalDeviceError> : true_type {};
|
||||
template <> struct is_error_code_enum<vkb::QueueError> : true_type {};
|
||||
template <> struct is_error_code_enum<vkb::DeviceError> : true_type {};
|
||||
template <> struct is_error_code_enum<vkb::SwapchainError> : true_type {};
|
||||
} // namespace std
|
||||
} // namespace std
|
||||
|
Loading…
Reference in New Issue
Block a user