diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-13 18:53:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 18:53:38 -0800 |
commit | 723bd8988391231140301d80a26d84881894b99c (patch) | |
tree | b01d617c38be76b751e8011ddb27d43d6337a060 /src | |
parent | 70f189d7af3eea0123963f781e6a579c8f4725bd (diff) | |
parent | ab362aa7e5bc66dbce48ee34f32af6ccf06e7271 (diff) |
Merge pull request #1677 from FreddyFunk/skip-vao-binding-cleanup
engines/maxwell_3d: Minor cleanup
Diffstat (limited to 'src')
-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; |