Skip to content

Commit

Permalink
Make surface capabilities queries conform to VUID-vkGetPhysicalDevice…
Browse files Browse the repository at this point in the history
…SurfaceCapabilities2KHR-pNext-02671 (#2144)
  • Loading branch information
sconybeare authored Feb 16, 2023
1 parent 9b7bb8a commit 6994ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkano/src/device/physical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6994ce6

Please sign in to comment.