diff --git a/crates/yakui-vulkan/src/lib.rs b/crates/yakui-vulkan/src/lib.rs index 28468fd2..df79435e 100644 --- a/crates/yakui-vulkan/src/lib.rs +++ b/crates/yakui-vulkan/src/lib.rs @@ -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(