Crash fix
reject triangles that can crash XYUV's switched to Floats. for textri ( this is important )
This commit is contained in:
1 parent
df67bb1f8b
commit
1f6897ca64
4 files changed
+6
-5
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user