mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
Merge pull request #8904 from penpot/ladybenko-wasm-cleanup
✨ Explicitly call free_gpu_resources on RenderState drop
This commit is contained in:
commit
e8e7900911
@ -3004,3 +3004,9 @@ impl RenderState {
|
||||
self.viewbox.set_all(zoom, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for RenderState {
|
||||
fn drop(&mut self) {
|
||||
self.gpu_state.context.free_gpu_resources();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user