diff --git a/src/vulkan.c b/src/vulkan.c index c39711b6..1123bb22 100644 --- a/src/vulkan.c +++ b/src/vulkan.c @@ -237,6 +237,9 @@ GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count) if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) return NULL; + if (!_glfw.vk.extensions[0]) + return NULL; + *count = 2; return (const char**) _glfw.vk.extensions; }