mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Change `Device::untrack` to properly reuse the `ResourceMap` allocated for prior calls. The prior code tries to do this but always leaves `Device::temp_suspected` set to a new empty `ResourceMap`, leaving the previous value to be dropped by `ResourceMap::extend`. Change `ResourceMap::extend` to take `other` by reference, rather than taking it by value and dropping it.