[deno] Do poll after Device::destroy to call

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev authored and mergify[bot] committed 2026-10-26 18:49:57 +00:00
1 parent e04cd38d59
commit 2eec736394
1 file changed
+3
+3
View File
@@ -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]