mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Add Flush to GL Queue::submit (#6941)
This commit is contained in:
parent
3b3e1939f9
commit
dcdb10348b
@ -1860,6 +1860,11 @@ impl crate::Queue for super::Queue {
|
|||||||
.map_err(|_| crate::DeviceError::OutOfMemory)?;
|
.map_err(|_| crate::DeviceError::OutOfMemory)?;
|
||||||
signal_fence.pending.push((signal_value, sync));
|
signal_fence.pending.push((signal_value, sync));
|
||||||
|
|
||||||
|
// This is extremely important. If we don't flush, the above fences may never
|
||||||
|
// be signaled, particularly in headless contexts. Headed contexts will
|
||||||
|
// often flush every so often, but headless contexts may not.
|
||||||
|
unsafe { gl.flush() };
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user