From 8b5d2e4a132beac8ee799cd0ed6063fedafcd9fc Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 20 Jun 2024 17:04:26 +0900 Subject: [PATCH] sw_engine: ++exception handling prevent the out of range anti-aliasing frames. issue: https://github.com/thorvg/thorvg/issues/2401 --- src/renderer/sw_engine/tvgSwRasterTexmap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/sw_engine/tvgSwRasterTexmap.h b/src/renderer/sw_engine/tvgSwRasterTexmap.h index a9fa7ddb..cfce7785 100644 --- a/src/renderer/sw_engine/tvgSwRasterTexmap.h +++ b/src/renderer/sw_engine/tvgSwRasterTexmap.h @@ -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;