From d68b4956635ae73e09478cbf666e67e2b7470ff9 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Mon, 1 Aug 2022 18:09:12 -0500 Subject: [PATCH] rebase --- wgpu-hal/src/vulkan/adapter.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/vulkan/adapter.rs b/wgpu-hal/src/vulkan/adapter.rs index 90885d62f0e..ca086f2f2f8 100644 --- a/wgpu-hal/src/vulkan/adapter.rs +++ b/wgpu-hal/src/vulkan/adapter.rs @@ -306,7 +306,9 @@ impl PhysicalDeviceFeatures { } else { None }, - multiview: if enabled_extensions.contains(&vk::KhrMultiviewFn::name()) { + multiview: if api_version >= vk::API_VERSION_1_1 + || enabled_extensions.contains(&vk::KhrMultiviewFn::name()) + { Some( vk::PhysicalDeviceMultiviewFeatures::builder() .multiview(requested_features.contains(wgt::Features::MULTIVIEW))