diff --git a/src/game_ui.c b/src/game_ui.c index c1f7eb80..15de9558 100644 --- a/src/game_ui.c +++ b/src/game_ui.c @@ -389,8 +389,8 @@ void render_hud(Gfx **dList, MatrixS **mtx, Vertex **vertexList, Object *arg3, s gDPPipeSync(gHUDCurrDisplayList++); init_rsp(&gHUDCurrDisplayList); init_rdp_and_framebuffer(&gHUDCurrDisplayList); - texEnableModes(0xFFFFFFFF); - texDisableModes(RENDER_Z_COMPARE); + texDisableModes(0xFFFFFFFF); + texEnableModes(RENDER_Z_COMPARE); func_8007BF1C(FALSE); if (check_if_showing_cutscene_camera() == FALSE && D_80126D34 == 0 && racer->racer.playerIndex == PLAYER_ONE) { if (D_80126D35 != 0) { @@ -488,7 +488,7 @@ block_95: *dList = gHUDCurrDisplayList; *mtx = gHUDCurrMatrix; *vertexList = gHUDCurrVertex; - texEnableModes(0xFFFFFFFF); + texDisableModes(0xFFFFFFFF); } } } diff --git a/src/textures_sprites.c b/src/textures_sprites.c index 95dbfc6d..beff2a34 100644 --- a/src/textures_sprites.c +++ b/src/textures_sprites.c @@ -896,11 +896,12 @@ s16 D_80126384; GLOBAL_ASM("asm/non_matchings/textures_sprites/texInitTextures.s") -void texDisableModes(s32 flags) { +/* these two are possibly wrong */ +void texEnableModes(s32 flags) { D_80126378 |= flags; } -void texEnableModes(s32 flags) { +void texDisableModes(s32 flags) { D_80126378 &= ~flags; } diff --git a/src/textures_sprites.h b/src/textures_sprites.h index 152665bc..e4524e26 100644 --- a/src/textures_sprites.h +++ b/src/textures_sprites.h @@ -115,8 +115,8 @@ typedef struct TempTexHeader { /* 0x25 */ u8 pad25[3]; // padding } TempTexHeader; -void texDisableModes(s32 flags); void texEnableModes(s32 flags); +void texDisableModes(s32 flags); s32 func_8007AE44(void); s32 func_8007AE54(void); s32 func_8007AE64(void);