Fix Vulkan extension count when none were found

This commit is contained in:
Camilla Berglund 2016-11-07 19:43:15 +01:00
parent 8210f89b12
commit 4d322a97e1

View File

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