fix(renderer/generic): deinit render targets with framestate (#8234)

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.
pull/8235/head
Mitchell Hashimoto 2025-08-14 11:52:48 -07:00 committed by GitHub
commit 4740242bb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
}
pub fn deinit(self: *FrameState) void {
self.target.deinit();
self.uniforms.deinit();
self.cells.deinit();
self.cells_bg.deinit();