Skip to content

Commit

Permalink
Fix Vulkan crash with TextureChange::Modified
Browse files Browse the repository at this point in the history
  • Loading branch information
patowen committed May 5, 2024
1 parent cbac6c0 commit 6785334
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/yakui-vulkan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ impl YakuiVulkan {

TextureChange::Modified => {
if let Some(old) = self.yakui_managed_textures.remove(&id) {
unsafe { old.cleanup(vulkan_context.device) };
unsafe {
self.uploads.dispose(old);
}
}
let new = paint.texture(id).unwrap();
let texture = VulkanTexture::from_yakui_texture(
Expand Down

0 comments on commit 6785334

Please sign in to comment.