Fixes vulkan validation error

This commit is contained in:
Tomáš Procházka 2025-03-22 17:28:51 +01:00 committed by Simon Hausmann
parent a313916ce6
commit b97cce762b

View file

@ -308,7 +308,7 @@ impl super::Surface for VulkanSurface {
.try_into()
.map_err(|_| format!("internal error: invalid swapchain image width {width}"))?;
let height = swapchain.image_extent()[1];
let height: i32 = width
let height: i32 = height
.try_into()
.map_err(|_| format!("internal error: invalid swapchain image height {height}"))?;