vulkan: permanently disable async shm resources on error
This commit is contained in:
parent
af66c661ae
commit
6726d53b47
1 changed files with 6 additions and 3 deletions
|
|
@ -54,9 +54,12 @@ pub struct VulkanShmImageAsyncData {
|
|||
|
||||
impl VulkanShmImageAsyncData {
|
||||
fn complete(&self, result: Result<(), VulkanError>) {
|
||||
self.busy.set(false);
|
||||
if let Some(staging) = self.staging.take() {
|
||||
staging.busy.set(false);
|
||||
let staging = self.staging.take();
|
||||
if result.is_ok() {
|
||||
self.busy.set(false);
|
||||
if let Some(staging) = staging {
|
||||
staging.busy.set(false);
|
||||
}
|
||||
}
|
||||
self.buffer.take();
|
||||
self.client_mem.take();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue