1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-20 20:40:09 +00:00

GSP::WriteHWRegsWithMask: fix register mask

This commit is contained in:
mailwl 2017-01-14 12:13:50 +03:00
parent ba271f6569
commit b458d7447c

View File

@ -149,7 +149,7 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes, VAddr
u32 mask = Memory::Read32(masks_vaddr);
// Update the current value of the register only for set mask bits
reg_value = (reg_value & ~mask) | (data | mask);
reg_value = (reg_value & ~mask) | (data & mask);
WriteSingleHWReg(base_address, reg_value);