mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
Correct macOS surface extension.
The extension name is VK_EXT_metal_surface, not KHR
This commit is contained in:
parent
947afe55c0
commit
325cdff399
@ -635,7 +635,7 @@ detail::Result<Instance> InstanceBuilder::build () const {
|
|||||||
added_window_exts = check_add_window_ext ("VK_KHR_xlib_surface") || added_window_exts;
|
added_window_exts = check_add_window_ext ("VK_KHR_xlib_surface") || added_window_exts;
|
||||||
added_window_exts = check_add_window_ext ("VK_KHR_wayland_surface") || added_window_exts;
|
added_window_exts = check_add_window_ext ("VK_KHR_wayland_surface") || added_window_exts;
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
bool added_window_exts = check_add_window_ext ("VK_KHR_metal_surface");
|
bool added_window_exts = check_add_window_ext ("VK_EXT_metal_surface");
|
||||||
#endif
|
#endif
|
||||||
if (!khr_surface_added || !added_window_exts)
|
if (!khr_surface_added || !added_window_exts)
|
||||||
return make_error_code (InstanceError::windowing_extensions_not_present);
|
return make_error_code (InstanceError::windowing_extensions_not_present);
|
||||||
|
Loading…
Reference in New Issue
Block a user