Make surface capabilities queries conform to VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-02671 (#2144)

This commit is contained in:
Sebastian Conybeare 2023-02-16 07:09:43 -05:00 committed by GitHub
parent 9b7bb8a1a5
commit 6994ce613e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1553,7 +1553,7 @@ impl PhysicalDevice {
let mut full_screen_exclusive_info_vk = None;
let mut full_screen_exclusive_win32_info_vk = None;
if self.supported_extensions().ext_full_screen_exclusive {
if self.supported_extensions().ext_full_screen_exclusive && win32_monitor.is_some() {
let next =
full_screen_exclusive_info_vk.insert(ash::vk::SurfaceFullScreenExclusiveInfoEXT {
full_screen_exclusive: full_screen_exclusive.into(),