summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2017-01-14 10:13:50 +0100
committermailwl <mailwl@gmail.com>2017-01-14 11:37:04 +0100
commitb458d7447c2f5233bd725d741804e3380aadc19b (patch)
tree4fc401f579c2d6320fc3c52fa2b645bc5dcd4f3b /src/core
parentMerge pull request #2423 from Kloen/floats-should-be-float (diff)
downloadyuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar.gz
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar.bz2
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar.lz
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar.xz
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.tar.zst
yuzu-b458d7447c2f5233bd725d741804e3380aadc19b.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 947958703..a8c1331ed 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -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);