mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +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
|
||||
u += _dudx;
|
||||
v += _dvdx;
|
||||
//range over?
|
||||
if ((uint32_t)v >= image->h) break;
|
||||
}
|
||||
next:
|
||||
//Step along both edges
|
||||
|
|
Loading…
Add table
Reference in a new issue