Skip to content
Permalink
Browse files

Vulkan: An additional check during init. May help #12131

  • Loading branch information...
hrydgard committed Jun 24, 2019
1 parent 2ecec84 commit 2a664add313c006b8e05bee8d8762460aa5b1196
Showing with 5 additions and 0 deletions.
  1. +5 −0 Common/Vulkan/VulkanContext.cpp
@@ -105,6 +105,11 @@ VkResult VulkanContext::CreateInstance(const CreateInfo &info) {
return VK_ERROR_INITIALIZATION_FAILED;
}

if (!IsInstanceExtensionAvailable(VK_KHR_SURFACE_EXTENSION_NAME)) {
// Cannot create a Vulkan display without VK_KHR_SURFACE_EXTENSION.
init_error_ = "Vulkan not loaded - no surface extension";
return VK_ERROR_INITIALIZATION_FAILED;
}
flags_ = info.flags;

// List extensions to try to enable.

0 comments on commit 2a664ad

Please sign in to comment.
You can’t perform that action at this time.