sw_engine texmap: ++safety

Prevent range over just in case.
This commit is contained in:
Hermet Park 2021-12-22 16:40:27 +09:00
parent 33018aa123
commit 6a2aaa2064

View file

@ -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