mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 09:05:52 +00:00
sw_engine texmap: remove unnecessary conditions.
remove exceptional handling for the performance.
This commit is contained in:
parent
4485db4f15
commit
46bdc8f1dc
1 changed files with 0 additions and 8 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Reference in a new issue