mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-10 20:06:36 +00:00
fix(renderer/generic): deinit render targets with framestate
This was a memory leak under Metal, leaked 1 swapchain worth of targets every time a surface was closed. Under OpenGL I think it was all cleaned up when the GL context was destroyed.
This commit is contained in:
@@ -395,6 +395,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn deinit(self: *FrameState) void {
|
pub fn deinit(self: *FrameState) void {
|
||||||
|
self.target.deinit();
|
||||||
self.uniforms.deinit();
|
self.uniforms.deinit();
|
||||||
self.cells.deinit();
|
self.cells.deinit();
|
||||||
self.cells_bg.deinit();
|
self.cells_bg.deinit();
|
||||||
|
Reference in New Issue
Block a user