mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
renderer/metal: reset cells when font size changes to avoid blank
Fixes #1743
This commit is contained in:
@ -812,6 +812,9 @@ pub fn setFontGrid(self: *Metal, grid: *font.SharedGrid) void {
|
|||||||
log.err("error resizing cells buffer err={}", .{err});
|
log.err("error resizing cells buffer err={}", .{err});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Reset our viewport to force a rebuild
|
||||||
|
self.cells_viewport = null;
|
||||||
|
|
||||||
// Update our uniforms
|
// Update our uniforms
|
||||||
self.uniforms = .{
|
self.uniforms = .{
|
||||||
.projection_matrix = self.uniforms.projection_matrix,
|
.projection_matrix = self.uniforms.projection_matrix,
|
||||||
|
Reference in New Issue
Block a user