mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
fix(Metal): don't throw away glyphs when the fg and bg colors match
This optimization is extremely niche and seems to be related to a strange bug experienced by Intel Mac users. Considering it costs some amount to have this extra check here even though it's false in the vast majority of cases, I feel it's pretty safe to just remove it entirely.
This commit is contained in:
@ -487,13 +487,6 @@ vertex CellTextVertexOut cell_text_vertex(
|
||||
);
|
||||
}
|
||||
|
||||
// Don't bother rendering if the bg and fg colors are identical, just return
|
||||
// the same point which will be culled because it makes the quad zero sized.
|
||||
// However, we should still render if this is the cursor position
|
||||
if (all(out.color == out.bg_color) && !is_cursor_pos) {
|
||||
out.position = float4(0.0);
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user