sw_engine: ++exception handling

prevent the out of range anti-aliasing frames.

issue: https://github.com/thorvg/thorvg/issues/2401
This commit is contained in:
Hermet Park 2024-06-20 17:04:26 +09:00 committed by Hermet Park
parent a9592ec3ef
commit 11c6da340b

View file

@ -924,6 +924,9 @@ static void _calcAAEdge(AASpans *aaSpans, int32_t eidx)
//Calculates AA Edges
for (y++; y < yEnd; y++) {
if (lines[y].x[0] == INT32_MAX) continue;
//Ready tx
if (eidx == 0) {
tx[0] = pEdge.x;