diff options
| author | 2018-11-13 14:07:23 +0100 | |
|---|---|---|
| committer | 2018-11-13 14:07:23 +0100 | |
| commit | ab362aa7e5bc66dbce48ee34f32af6ccf06e7271 (patch) | |
| tree | 50ee03bc3c1763fce79ad9aafe309d999201b7ae /src | |
| parent | Merge pull request #1628 from greggameplayer/Texture2DArray (diff) | |
| download | yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.gz yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.tar.xz yuzu-ab362aa7e5bc66dbce48ee34f32af6ccf06e7271.zip | |
gl_rasterizer: Minor cleanup
Minor code cleanup from unaddressed feedback in #1654
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) { | |||
| 121 | debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr); | 121 | debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | u32 old = regs.reg_array[method]; | 124 | if (regs.reg_array[method] != value) { |
| 125 | regs.reg_array[method] = value; | 125 | regs.reg_array[method] = value; |
| 126 | |||
| 127 | if (value != old) { | ||
| 128 | if (method >= MAXWELL3D_REG_INDEX(vertex_attrib_format) && | 126 | if (method >= MAXWELL3D_REG_INDEX(vertex_attrib_format) && |
| 129 | method < MAXWELL3D_REG_INDEX(vertex_attrib_format) + regs.vertex_attrib_format.size()) { | 127 | method < MAXWELL3D_REG_INDEX(vertex_attrib_format) + regs.vertex_attrib_format.size()) { |
| 130 | dirty_flags.vertex_attrib_format = true; | 128 | dirty_flags.vertex_attrib_format = true; |