mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
swap texEnableModes/texDisableModes
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user