swap texEnableModes/texDisableModes

This commit is contained in:
Rena Kunisaki
2023-01-29 10:24:30 -05:00
parent 523876409c
commit 3724e48a8b
3 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -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);
}
}
}
+3 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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);