Skip to content

Commit

Permalink
Vulkan: An additional check during init. May help #12131
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 24, 2019
1 parent 2ecec84 commit 2a664ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Common/Vulkan/VulkanContext.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 2a664ad

Please sign in to comment.