diff options
author | bunnei <bunneidev@gmail.com> | 2016-02-14 03:10:05 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-14 03:10:05 +0100 |
commit | 0d086616d1af239b8e41b246bea3c1ef85fc907f (patch) | |
tree | 0dc7778532b0e2d1c5acd0224266b8a67d961155 /src/video_core/command_processor.cpp | |
parent | Merge pull request #1264 from bunnei/fragment-lighting-hw (diff) | |
parent | BitField: Make trivially copyable and remove assignment operator (diff) | |
download | yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.gz yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.bz2 yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.lz yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.xz yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.zst yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 5dfedfe31..ed20057b5 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -429,7 +429,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { uniform.w.ToFloat32()); // TODO: Verify that this actually modifies the register! - uniform_setup.index = uniform_setup.index + 1; + uniform_setup.index.Assign(uniform_setup.index + 1); } break; } @@ -478,7 +478,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { ASSERT_MSG(lut_config.index < 256, "lut_config.index exceeded maximum value of 255!"); g_state.lighting.luts[lut_config.type][lut_config.index].raw = value; - lut_config.index = lut_config.index + 1; + lut_config.index.Assign(lut_config.index + 1); break; } |