File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Graphics/GraphicsEngineVulkan/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -676,11 +676,11 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& En
676676 auto vkDevice = Instance->SelectPhysicalDevice (EngineCI.AdapterId );
677677 auto PhysicalDevice = VulkanUtilities::VulkanPhysicalDevice::Create (vkDevice, *Instance);
678678
679- std::vector<const char *> DeviceExtensions =
680- {
681- VK_KHR_SWAPCHAIN_EXTENSION_NAME,
682- VK_KHR_MAINTENANCE1_EXTENSION_NAME // To allow negative viewport height
683- } ;
679+ std::vector<const char *> DeviceExtensions = {VK_KHR_SWAPCHAIN_EXTENSION_NAME};
680+ if (PhysicalDevice-> IsExtensionSupported (VK_KHR_MAINTENANCE1_EXTENSION_NAME))
681+ DeviceExtensions. push_back (VK_KHR_MAINTENANCE1_EXTENSION_NAME); // To allow negative viewport height
682+ else
683+ LOG_WARNING_MESSAGE (VK_KHR_MAINTENANCE1_EXTENSION_NAME, " is not supported. " ) ;
684684
685685 // Enable device features if they are supported and throw an error if not supported, but required by user.
686686 const auto AdapterInfo = GetPhysicalDeviceGraphicsAdapterInfo (*PhysicalDevice);
You can’t perform that action at this time.
0 commit comments