diff --git a/src/renderer/sw_engine/tvgSwRle.cpp b/src/renderer/sw_engine/tvgSwRle.cpp index 20fcef00..e888d740 100644 --- a/src/renderer/sw_engine/tvgSwRle.cpp +++ b/src/renderer/sw_engine/tvgSwRle.cpp @@ -842,6 +842,8 @@ void _replaceClipSpan(SwRle *rle, SwSpan* clippedSpans, uint32_t size) SwRle* rleRender(SwRle* rle, const SwOutline* outline, const SwBBox& renderRegion, bool antiAlias) { + if (!outline) return nullptr; + constexpr auto RENDER_POOL_SIZE = 16384L; constexpr auto BAND_SIZE = 40;