From d20ab66741c46f531d4af5b631769f092b837769 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Mon, 1 Mar 2021 16:34:01 -0500 Subject: [PATCH] Force-drop the token before calling fire_map_callbacks --- wgpu-core/src/device/queue.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index c93b45e0c1..2ab92d5210 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -815,6 +815,8 @@ impl Global { callbacks }; + // the map callbacks should execute with nothing locked! + drop(token); super::fire_map_callbacks(callbacks); Ok(())