Skip to content

Commit

Permalink
Fix wrong detection of seperate stencil usage (#2193)
Browse files Browse the repository at this point in the history
Fix crash on Vivante GPU (#2192) by properly
determining when to include seperate stencil usage.
  • Loading branch information
Fighter19 authored Apr 25, 2023
1 parent d4961b1 commit bb7990f
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 @@ -1067,7 +1067,7 @@ impl PhysicalDevice {
_ne: _,
} = image_format_info;

let has_separate_stencil_usage = stencil_usage == usage;
let has_separate_stencil_usage = stencil_usage != usage;

let mut info2_vk = ash::vk::PhysicalDeviceImageFormatInfo2 {
format: format.unwrap().into(),
Expand Down

0 comments on commit bb7990f

Please sign in to comment.