mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-05 07:08:39 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user