1
0
Fork 0
forked from wry/wry

vulkan: prevent creating new async processes after the renderer has been dropped

This commit is contained in:
Julian Orth 2024-09-06 18:35:48 +02:00
parent cf74756c34
commit 1f169a0d7b
3 changed files with 14 additions and 0 deletions

View file

@ -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(());