update the font atlas if there are changes

This commit is contained in:
Mitchell Hashimoto
2022-05-19 20:24:28 -07:00
parent 58b18a26f5
commit 6e86afba17
4 changed files with 59 additions and 23 deletions

View File

@@ -499,6 +499,9 @@ fn renderTimerCallback(t: *libuv.Timer) void {
// Update the cells for drawing
win.grid.updateCells(win.terminal) catch unreachable;
// Update our texture if we have to
win.grid.flushAtlas() catch unreachable;
// Set our background
gl.clearColor(win.bg_r, win.bg_g, win.bg_b, win.bg_a);
gl.clear(gl.c.GL_COLOR_BUFFER_BIT);