From 434238fcd4e683505505d39c12ae09f08e80e44e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 28 Sep 2016 15:49:43 +0200 Subject: [PATCH] Fix checks for Vulkan surface extension presence --- src/vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan.c b/src/vulkan.c index eb19dae2..30f4b874 100644 --- a/src/vulkan.c +++ b/src/vulkan.c @@ -254,7 +254,7 @@ GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, return GLFW_FALSE; } - if (!_glfw.vk.extensions) + if (!_glfw.vk.extensions[0]) { _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Window surface creation extensions not found"); @@ -285,7 +285,7 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, return VK_ERROR_INITIALIZATION_FAILED; } - if (!_glfw.vk.extensions) + if (!_glfw.vk.extensions[0]) { _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Window surface creation extensions not found");