summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFrederic L <frederic.laing.development@gmail.com>2018-11-13 14:07:23 +0100
committerGitHub <noreply@github.com>2018-11-13 14:07:23 +0100
commitab362aa7e5bc66dbce48ee34f32af6ccf06e7271 (patch)
tree50ee03bc3c1763fce79ad9aafe309d999201b7ae /src/video_core
parentMerge pull request #1628 from greggameplayer/Texture2DArray (diff)
downloadyuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.gz
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.bz2
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.lz
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.xz
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.zst
yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index d1777b25b..6de07ea56 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -121,10 +121,8 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr);
}
- u32 old = regs.reg_array[method];
- regs.reg_array[method] = value;
-
- if (value != old) {
+ if (regs.reg_array[method] != value) {
+ regs.reg_array[method] = value;
if (method >= MAXWELL3D_REG_INDEX(vertex_attrib_format) &&
method < MAXWELL3D_REG_INDEX(vertex_attrib_format) + regs.vertex_attrib_format.size()) {
dirty_flags.vertex_attrib_format = true;