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:
Qwerasd
2025-02-09 17:45:00 -05:00
parent 2c06ce761b
commit 28200fb9e5

View File

@ -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;
}