diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-09-07 17:31:29 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-09-07 17:31:29 -0400 |
| commit | 3e7ece6ff50f48dbce8b044cfcc0851ce4859789 (patch) | |
| tree | 6ae26e70f5d6e3ad9c2497538ff54a6dbe82e77f /src/JSystem/J3DGraphBase | |
| parent | 340d18c6bcc8d6e0640748273109c55ab058df7b (diff) | |
Copy dolphin/gx progress from TP
Diffstat (limited to 'src/JSystem/J3DGraphBase')
| -rw-r--r-- | src/JSystem/J3DGraphBase/J3DGD.cpp | 2 | ||||
| -rw-r--r-- | src/JSystem/J3DGraphBase/J3DSys.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DGD.cpp b/src/JSystem/J3DGraphBase/J3DGD.cpp index 95d501a8..555558cf 100644 --- a/src/JSystem/J3DGraphBase/J3DGD.cpp +++ b/src/JSystem/J3DGraphBase/J3DGD.cpp @@ -502,7 +502,7 @@ void J3DGDSetFog(GXFogType type, f32 startZ, f32 endZ, f32 nearZ, f32 farZ, GXCo void J3DGDSetFogRangeAdj(u8 enabled, u16 center, GXFogAdjTable* pFogAdjTable) { if (enabled) { for (s32 i = 0; i < 10; i += 2) { - J3DGDWriteBPCmd((0xe9 + i / 2) << 24 | pFogAdjTable->r[i + 1] << 12 | pFogAdjTable->r[i] << 0); + J3DGDWriteBPCmd((0xe9 + i / 2) << 24 | pFogAdjTable->fogVals[i + 1] << 12 | pFogAdjTable->fogVals[i] << 0); } } diff --git a/src/JSystem/J3DGraphBase/J3DSys.cpp b/src/JSystem/J3DGraphBase/J3DSys.cpp index 3ef85963..8e910641 100644 --- a/src/JSystem/J3DGraphBase/J3DSys.cpp +++ b/src/JSystem/J3DGraphBase/J3DSys.cpp @@ -148,7 +148,7 @@ void J3DSys::setTexCacheRegion(GXTexCacheSize size) { /* 802D8EE0-802D956C .text drawInit__6J3DSysFv */ void J3DSys::drawInit() { - GXSetMisc(2, 0); + GXSetMisc(GX_MT_DL_SAVE_CONTEXT, 0); GXInvalidateVtxCache(); GXSetCurrentMtx(GX_PNMTX0); GXSetCullMode(GX_CULL_BACK); |
