Minor refactor of physical device property/feature detection, to allow for more extension use.

This commit is contained in:
Henrik Rydgard authored and Henrik Rydgård committed 2019-02-05 18:07:17 +01:00
1 parent fdd0d7acb4
commit 8e1a5ef3d6
15 files changed
+130 -78

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ VulkanRenderManager::VulkanRenderManager(VulkanContext *vulkan) : vulkan_(vulkan
queueRunner_.CreateDeviceObjects();
// Temporary AMD hack for issue #10097
if (vulkan_->GetPhysicalDeviceProperties(vulkan_->GetCurrentPhysicalDevice()).vendorID == VULKAN_VENDOR_AMD) {
if (vulkan_->GetPhysicalDeviceProperties().properties.vendorID == VULKAN_VENDOR_AMD) {
useThread_ = false;
}
}