opengl: continue rendering if single cell has error

This commit is contained in:
Mitchell Hashimoto
2022-11-25 13:16:07 -08:00
parent 8ad5dd1853
commit 179f5e6283

View File

@ -769,7 +769,7 @@ pub fn rebuildCells(
var iter = self.font_shaper.runIterator(self.font_group, row);
while (try iter.next(self.alloc)) |run| {
for (try self.font_shaper.shape(run)) |shaper_cell| {
assert(try self.updateCell(
if (self.updateCell(
term_selection,
screen,
row.getCell(shaper_cell.x),
@ -777,7 +777,15 @@ pub fn rebuildCells(
run,
shaper_cell.x,
y,
));
)) |update| {
assert(update);
} else |err| {
log.warn("error building cell, will be invalid x={} y={}, err={}", .{
shaper_cell.x,
y,
err,
});
}
}
}