ソースを参照

Fix checks for Vulkan surface extension presence

Camilla Berglund 9 年 前
コミット
434238fcd4
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/vulkan.c

+ 2 - 2
src/vulkan.c

@@ -254,7 +254,7 @@ GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance,
         return GLFW_FALSE;
         return GLFW_FALSE;
     }
     }
 
 
-    if (!_glfw.vk.extensions)
+    if (!_glfw.vk.extensions[0])
     {
     {
         _glfwInputError(GLFW_API_UNAVAILABLE,
         _glfwInputError(GLFW_API_UNAVAILABLE,
                         "Vulkan: Window surface creation extensions not found");
                         "Vulkan: Window surface creation extensions not found");
@@ -285,7 +285,7 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance,
         return VK_ERROR_INITIALIZATION_FAILED;
         return VK_ERROR_INITIALIZATION_FAILED;
     }
     }
 
 
-    if (!_glfw.vk.extensions)
+    if (!_glfw.vk.extensions[0])
     {
     {
         _glfwInputError(GLFW_API_UNAVAILABLE,
         _glfwInputError(GLFW_API_UNAVAILABLE,
                         "Vulkan: Window surface creation extensions not found");
                         "Vulkan: Window surface creation extensions not found");