Match dDlst_setResTimgObj

This commit is contained in:
LagoLunatic 2024-10-19 13:09:28 -04:00
parent ea7b18aa9f
commit cb75b2dad4

View File

@ -83,11 +83,10 @@ void dDlst_snapShot2_c::draw() {
/* 80224748-80224884 .text dDlst_setResTimgObj__FPC7ResTIMGP9_GXTexObjPvUlUl */
bool dDlst_setResTimgObj(const ResTIMG* timg, GXTexObj* texObj, void* imagePtr, u32 w, u32 h) {
/* Nonmatching */
if (timg->indexTexture) {
JUT_ASSERT(0xd9, FALSE);
} else {
GXInitTexObj(texObj, imagePtr, w, h, (GXTexFmt)timg->format, (GXTexWrapMode)timg->wrapS, (GXTexWrapMode)timg->wrapT, (GXBool)(timg->mipmapCount > 1));
GXInitTexObj(texObj, imagePtr, w, h, (GXTexFmt)timg->format, (GXTexWrapMode)timg->wrapS, (GXTexWrapMode)timg->wrapT, (GXBool)((int)timg->mipmapCount > 1));
}
GXInitTexObjLOD(texObj, (GXTexFilter)timg->minFilter, (GXTexFilter)timg->magFilter,