A few kissable changes

This commit is contained in:
offtkp 2024-07-21 18:25:51 +03:00
parent 82df95cf88
commit b8712b37c3
4 changed files with 11 additions and 8 deletions

View file

@ -143,10 +143,10 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
case FogLUTData5:
case FogLUTData6:
case FogLUTData7: {
const uint32_t index = regs[FogLUTIndex] & 127;
const uint32_t index = regs[FogLUTIndex] & 0x7F;
fogLUT[index] = value;
fogLUTDirty = true;
regs[FogLUTIndex] = (index + 1) & 127;
regs[FogLUTIndex] = (index + 1) & 0x7F;
break;
}