diff options
author | Lioncash <mathew1800@gmail.com> | 2020-04-18 02:47:00 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-04-18 02:48:52 +0200 |
commit | bf328ed35a13b6a024c11cb209da5de09cabf3b0 (patch) | |
tree | 8d3ab7e9fc2b4f4e5eb4cf5f04c27ef4dd7306a6 /src/video_core | |
parent | Merge pull request #3704 from lioncash/fmt (diff) | |
download | yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar.gz yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar.bz2 yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar.lz yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar.xz yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.tar.zst yuzu-bf328ed35a13b6a024c11cb209da5de09cabf3b0.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 9495f48a2..4c7808a67 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -484,7 +484,7 @@ private: code.AddLine("switch (jmp_to) {{"); for (const auto& pair : ir.GetBasicBlocks()) { - const auto [address, bb] = pair; + const auto& [address, bb] = pair; code.AddLine("case 0x{:X}U: {{", address); ++code.scope; @@ -1483,8 +1483,8 @@ private: dy += '('; for (std::size_t index = 0; index < components; ++index) { - const auto operand_x{derivates.at(index * 2)}; - const auto operand_y{derivates.at(index * 2 + 1)}; + const auto& operand_x{derivates.at(index * 2)}; + const auto& operand_y{derivates.at(index * 2 + 1)}; dx += Visit(operand_x).AsFloat(); dy += Visit(operand_y).AsFloat(); |