diff --git a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h index 0c6bf13d..4e8d3421 100644 --- a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h +++ b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h @@ -142,6 +142,8 @@ //Step UV horizontally u += _dudx; v += _dvdx; + //range over? + if ((uint32_t)v >= image->h) break; } next: //Step along both edges