diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-14 03:53:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 03:53:38 +0100 |
commit | 723bd8988391231140301d80a26d84881894b99c (patch) | |
tree | b01d617c38be76b751e8011ddb27d43d6337a060 | |
parent | Merge pull request #1680 from lioncash/mem (diff) | |
parent | gl_rasterizer: Minor cleanup (diff) | |
download | yuzu-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.cpp | 6 |
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; |