From ffd9de8c61d3b5f0e703ebd96e96f2e2a63c1db5 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 9 Sep 2026 09:31:39 -0700 Subject: [PATCH] duh --- libs/JSystem/src/J3DGraphBase/J3DTevs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/JSystem/src/J3DGraphBase/J3DTevs.cpp b/libs/JSystem/src/J3DGraphBase/J3DTevs.cpp index 77e363737b..b43663731d 100644 --- a/libs/JSystem/src/J3DGraphBase/J3DTevs.cpp +++ b/libs/JSystem/src/J3DGraphBase/J3DTevs.cpp @@ -338,7 +338,8 @@ void loadTexNo(u32 param_0, const u16& texNo) { J3D_emit_loaded_tlut_metadata( *reinterpret_cast(j3dSys.getTexture()->getTlutObj(texNo)), param_0); } -#else +#endif + GDOverflowCheck(0x14); J3DGDSetTexImgPtr(GXTexMapID(param_0), (u8*)resTIMG + resTIMG->imageOffset); J3DGDSetTexImgAttr(GXTexMapID(param_0), resTIMG->width, resTIMG->height, GXTexFmt(resTIMG->format & 0x0f)); @@ -350,7 +351,6 @@ void loadTexNo(u32 param_0, const u16& texNo) { J3DGDLoadTlut((u8*)resTIMG + resTIMG->paletteOffset, (param_0 << 13) + 0xf0000, tlutSize); J3DGDSetTexTlut(GXTexMapID(param_0), (param_0 << 13) + 0xf0000, GXTlutFmt(resTIMG->colorFormat)); } -#endif } void patchTexNo_PtrToIdx(u32 texID, const u16& idx) {