mirror of
https://github.com/penpot/penpot.git
synced 2026-05-28 19:33:45 +00:00
✨ Explicitly call free_gpu_resources on RenderState drop
This commit is contained in:
parent
6d5b97a7e9
commit
f6b8117fe9
@ -3004,3 +3004,9 @@ impl RenderState {
|
|||||||
self.viewbox.set_all(zoom, x, y);
|
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