mirror of
https://github.com/penpot/penpot.git
synced 2026-04-10 13:22:37 +02:00
✨ Explicitly call free_gpu_resources on RenderState drop
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user