This commit is contained in:
Ryan Oldenburg 2022-06-23 21:26:44 -05:00
parent bec700d6b9
commit 9a9f8d114f

View file

@ -1180,13 +1180,11 @@ proc partitionSegments(
for partition in result.mitems:
partition.requiresAntiAliasing = requiresAntiAliasing(partition.entries)
let
top = partition.top.float32
bottom = partition.bottom.float32
if partition.entries.len == 2:
# Clip the entries to the parition bounds
let
top = partition.top.float32
bottom = partition.bottom.float32
topLine = line(vec2(0, top), vec2(1000, top))
bottomLine = line(vec2(0, bottom), vec2(1000, bottom))
for entry in partition.entries.mitems: