Correct macOS surface extension.

The extension name is VK_EXT_metal_surface, not KHR
This commit is contained in:
Charles Giessen 2020-11-20 16:33:22 -07:00
parent 947afe55c0
commit 325cdff399

View File

@ -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);