Fix wrong detection of seperate stencil usage (#2193)

Fix crash on Vivante GPU (#2192) by properly
determining when to include seperate stencil usage.
This commit is contained in:
Fighter19 2023-04-25 21:06:44 +02:00 committed by GitHub
parent d4961b192c
commit bb7990fd49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),