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.pull/5652/head
parent
2c06ce761b
commit
28200fb9e5
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue