mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
[deno] Do poll after Device::destroy to call
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
1 parent
e04cd38d59
commit
2eec736394
1 file changed
+3
@@ -148,6 +148,9 @@ impl GPUDevice {
|
||||
#[undefined]
|
||||
fn destroy(&self) {
|
||||
self.wgpu_device.destroy();
|
||||
// Poll the device to encourage it to process any pending operations
|
||||
// and release resources associated with the destroyed device (and thus calling lost closure).
|
||||
let _ = self.wgpu_device.poll(wgpu_types::PollType::Poll);
|
||||
}
|
||||
|
||||
#[reentrant]
|
||||
|
||||
Reference in new issue
Block a user