mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04: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.