1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Clear fog parameters in gSPLoadUcodeEx.

Fixed Zelda OOT wrong fog [HLE] #640
This commit is contained in:
Sergey Lipskiy 2018-11-03 15:40:41 +07:00
parent f72553a524
commit 7aa360c900

View File

@ -128,6 +128,8 @@ void gSPLoadUcodeEx( u32 uc_start, u32 uc_dstart, u16 uc_dsize )
gSP.matrix.modelViewi = 0;
gSP.changed |= CHANGED_MATRIX | CHANGED_LIGHT | CHANGED_LOOKAT;
gSP.status[0] = gSP.status[1] = gSP.status[2] = gSP.status[3] = 0;
gSP.fog.multiplier = gSP.fog.offset = 0;
gSP.fog.multiplierf = gSP.fog.offsetf = 0.0f;
if ((((uc_start & 0x1FFFFFFF) + 4096) > RDRAMSize) || (((uc_dstart & 0x1FFFFFFF) + uc_dsize) > RDRAMSize)) {
DebugMsg(DEBUG_NORMAL|DEBUG_ERROR, "gSPLoadUcodeEx out of RDRAM\n");