summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-14 03:53:38 +0100
committerGitHub <noreply@github.com>2018-11-14 03:53:38 +0100
commit723bd8988391231140301d80a26d84881894b99c (patch)
treeb01d617c38be76b751e8011ddb27d43d6337a060
parentMerge pull request #1680 from lioncash/mem (diff)
parentgl_rasterizer: Minor cleanup (diff)
downloadyuzu-723bd8988391231140301d80a26d84881894b99c.tar
yuzu-723bd8988391231140301d80a26d84881894b99c.tar.gz
yuzu-723bd8988391231140301d80a26d84881894b99c.tar.bz2
yuzu-723bd8988391231140301d80a26d84881894b99c.tar.lz
yuzu-723bd8988391231140301d80a26d84881894b99c.tar.xz
yuzu-723bd8988391231140301d80a26d84881894b99c.tar.zst
yuzu-723bd8988391231140301d80a26d84881894b99c.zip
-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;