mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
sw_engine texmap: ++safety
Prevent range over just in case.
This commit is contained in:
parent
33018aa123
commit
6a2aaa2064
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@
|
||||||
//Step UV horizontally
|
//Step UV horizontally
|
||||||
u += _dudx;
|
u += _dudx;
|
||||||
v += _dvdx;
|
v += _dvdx;
|
||||||
|
//range over?
|
||||||
|
if ((uint32_t)v >= image->h) break;
|
||||||
}
|
}
|
||||||
next:
|
next:
|
||||||
//Step along both edges
|
//Step along both edges
|
||||||
|
|
Loading…
Add table
Reference in a new issue