Crash fix

reject triangles that can crash
XYUV's switched to Floats. for textri ( this is important )
This commit is contained in:
MonstersGoBoom
2017-10-30 12:12:53 -04:00
parent df67bb1f8b
commit 1f6897ca64
4 changed files with 6 additions and 5 deletions

View File

@@ -299,7 +299,7 @@ static s32 lua_textri(lua_State* lua)
float pt[12];
for (s32 i = 0; i < COUNT_OF(pt); i++)
pt[i] = getLuaNumber(lua, i + 1);
pt[i] = (float)lua_tonumber(lua, i + 1);
tic_mem* memory = (tic_mem*)getLuaMachine(lua);
u8 chroma = 0xff;