diff --git a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h index d7084bcb..c30186b3 100644 --- a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h +++ b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h @@ -72,14 +72,6 @@ while (x++ < x2) { uu = (int) u; vv = (int) v; - /* FIXME: sometimes u and v are < 0 - don'tc crash */ - if (uu < 0) uu = 0; - if (vv < 0) vv = 0; - - /* Range exception handling */ - /* OPTIMIZE ME, handle in advance? */ - if (uu >= sw) uu = sw - 1; - if (vv >= sh) vv = sh - 1; ar = (int)(255 * (1 - modff(u, &iptr))); ab = (int)(255 * (1 - modff(v, &iptr)));