renderer: reset terminal state cleanup counter (#13585)

Reset the frame counter whenever retained render state is cleared.
Otherwise, every subsequent frame will be deinitialized and rebuilt.
This commit is contained in:
Mitchell Hashimoto
2026-08-03 20:55:47 -07:00
committed by GitHub

View File

@@ -1138,6 +1138,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
if (self.terminal_state_frame_count >= max_terminal_state_frame_count) {
self.terminal_state.deinit(self.alloc);
self.terminal_state = .empty;
self.terminal_state_frame_count = 0;
}
self.terminal_state_frame_count += 1;