mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-19 21:33:07 -04:00
small fixes
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
#include "dolphin/gx/GX.h"
|
||||
|
||||
/* 80017530-800176BC .text mDoLib_setResTimgObj__FP7ResTIMGP9_GXTexObjUlP10_GXTlutObj */
|
||||
u8 mDoLib_setResTimgObj(ResTIMG* i_img, GXTexObj* o_texObj, u32 i_tlut_name, GXTlutObj * o_tlutObj) {
|
||||
u8 mDoLib_setResTimgObj(ResTIMG* i_img, GXTexObj* r4, u32 i_tlut_name, GXTlutObj * o_tlutObj) {
|
||||
/* Nonmatching - regalloc */
|
||||
GXTexObj* o_texObj = (GXTexObj*)r4; // fixes regalloc for r31, but the other 3 are incorrect in a different way
|
||||
if (i_img->indexTexture) {
|
||||
JUT_ASSERT(0x2b, o_tlutObj != NULL);
|
||||
GXInitTlutObj(o_tlutObj, ((char*)i_img) + i_img->paletteOffset, (GXTlutFmt)i_img->colorFormat, i_img->numColors);
|
||||
|
||||
Reference in New Issue
Block a user