mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
opengl: continue rendering if single cell has error
This commit is contained in:
@ -769,7 +769,7 @@ pub fn rebuildCells(
|
|||||||
var iter = self.font_shaper.runIterator(self.font_group, row);
|
var iter = self.font_shaper.runIterator(self.font_group, row);
|
||||||
while (try iter.next(self.alloc)) |run| {
|
while (try iter.next(self.alloc)) |run| {
|
||||||
for (try self.font_shaper.shape(run)) |shaper_cell| {
|
for (try self.font_shaper.shape(run)) |shaper_cell| {
|
||||||
assert(try self.updateCell(
|
if (self.updateCell(
|
||||||
term_selection,
|
term_selection,
|
||||||
screen,
|
screen,
|
||||||
row.getCell(shaper_cell.x),
|
row.getCell(shaper_cell.x),
|
||||||
@ -777,7 +777,15 @@ pub fn rebuildCells(
|
|||||||
run,
|
run,
|
||||||
shaper_cell.x,
|
shaper_cell.x,
|
||||||
y,
|
y,
|
||||||
));
|
)) |update| {
|
||||||
|
assert(update);
|
||||||
|
} else |err| {
|
||||||
|
log.warn("error building cell, will be invalid x={} y={}, err={}", .{
|
||||||
|
shaper_cell.x,
|
||||||
|
y,
|
||||||
|
err,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user