mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
Fixes vulkan validation error
This commit is contained in:
parent
a313916ce6
commit
b97cce762b
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"))?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue