renderer/metal: reset cells when font size changes to avoid blank

Fixes #1743
This commit is contained in:
Mitchell Hashimoto
2024-05-09 09:48:08 -07:00
parent ae0464cf70
commit 61fd7f7fbf

View File

@ -812,6 +812,9 @@ pub fn setFontGrid(self: *Metal, grid: *font.SharedGrid) void {
log.err("error resizing cells buffer err={}", .{err});
};
// Reset our viewport to force a rebuild
self.cells_viewport = null;
// Update our uniforms
self.uniforms = .{
.projection_matrix = self.uniforms.projection_matrix,