mirror of
https://github.com/penpot/penpot.git
synced 2026-10-06 19:21:24 -04:00
✨ Explicitly call free_gpu_resources on RenderState drop
This commit is contained in:
1 parent
6d5b97a7e9
commit
f6b8117fe9
1 file changed
+6
@@ -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