From 4d322a97e19a2b35ee6adda9bad2418c55777923 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Nov 2016 19:43:15 +0100 Subject: [PATCH] Fix Vulkan extension count when none were found --- src/vulkan.c | 3 +++ 1 file changed, 3 insertions(+) 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; }