mirror of
https://github.com/glfw/glfw.git
synced 2024-12-01 14:27:13 +00:00
Fix Vulkan extension count when none were found
This commit is contained in:
parent
8210f89b12
commit
4d322a97e1
@ -237,6 +237,9 @@ GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count)
|
|||||||
if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER))
|
if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (!_glfw.vk.extensions[0])
|
||||||
|
return NULL;
|
||||||
|
|
||||||
*count = 2;
|
*count = 2;
|
||||||
return (const char**) _glfw.vk.extensions;
|
return (const char**) _glfw.vk.extensions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user