temp. hack preventing evil out-of-bounds write

This commit is contained in:
StapleButter
2017-03-04 15:34:07 +01:00
parent f8770dc8fe
commit 8c7b7e2327
4 changed files with 11 additions and 5 deletions

View File

@ -498,6 +498,10 @@ void RenderPolygon(Polygon* polygon)
s32 tr = ((perspfactorr1 * vrcur->TexCoords[1]) + (perspfactorr2 * vrnext->TexCoords[1])) / (perspfactorr1 + perspfactorr2);
if (xr == xl) xr++;
// temp.
if (xl > 255) continue;
s32 xdiv = 0x1000 / (xr - xl);
//printf("y%d: %d->%d %08X %08X\n", y, xl, xr, lfactor, rfactor);