1
0
Fork 0
forked from wry/wry

vulkan: permanently disable async shm resources on error

This commit is contained in:
Julian Orth 2026-03-23 18:47:50 +01:00
parent af66c661ae
commit 6726d53b47

View file

@ -54,9 +54,12 @@ pub struct VulkanShmImageAsyncData {
impl VulkanShmImageAsyncData { impl VulkanShmImageAsyncData {
fn complete(&self, result: Result<(), VulkanError>) { fn complete(&self, result: Result<(), VulkanError>) {
self.busy.set(false); let staging = self.staging.take();
if let Some(staging) = self.staging.take() { if result.is_ok() {
staging.busy.set(false); self.busy.set(false);
if let Some(staging) = staging {
staging.busy.set(false);
}
} }
self.buffer.take(); self.buffer.take();
self.client_mem.take(); self.client_mem.take();