mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Revert "renderer/opengl: reclaim cell buffer memory when resizing"
This was causing flicker during resize This reverts commit 06edc311a1e3fa4611f76fe47bd6e7580257bbc3.
This commit is contained in:
@ -2201,12 +2201,6 @@ pub fn setScreenSize(
|
||||
if (single_threaded_draw) self.draw_mutex.lock();
|
||||
defer if (single_threaded_draw) self.draw_mutex.unlock();
|
||||
|
||||
// Reset our buffer sizes so that we free memory when the screen shrinks.
|
||||
// This could be made more clever by only doing this when the screen
|
||||
// shrinks but the performance cost really isn't that much.
|
||||
self.cells.clearAndFree(self.alloc);
|
||||
self.cells_bg.clearAndFree(self.alloc);
|
||||
|
||||
// Store our screen size
|
||||
self.size = size;
|
||||
|
||||
|
Reference in New Issue
Block a user