renderer: reset terminal state cleanup counter

Reset the frame counter whenever retained render state is cleared.
Otherwise, every subsequent frame will be deinitialized and rebuilt.
This commit is contained in:
Jon Parise
2026-08-03 19:03:06 -04:00
parent f124c42ab9
commit 9e6e2ea964

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;