vulkan: prevent creating new async processes after the renderer has been dropped
This commit is contained in:
parent
cf74756c34
commit
1f169a0d7b
3 changed files with 14 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ impl VulkanShmImage {
|
|||
buffer: &[Cell<u8>],
|
||||
damage: Option<&[Rect]>,
|
||||
) -> Result<(), VulkanError> {
|
||||
img.renderer.check_defunct()?;
|
||||
if let Some(damage) = damage {
|
||||
if damage.is_empty() {
|
||||
return Ok(());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue