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
parent 8332ee3b95
commit 8b5d2e4a13

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;