diff options
| author | 2018-10-20 14:22:16 -0400 | |
|---|---|---|
| committer | 2018-10-20 14:22:37 -0400 | |
| commit | 381baf783d39330007e75e409aee2fc685e95c01 (patch) | |
| tree | 4f9d8919a558d71605f1f0d628b68f8e435ded99 /src | |
| parent | gl_shader_decompiler: Fix a few comment typos (diff) | |
| download | yuzu-381baf783d39330007e75e409aee2fc685e95c01.tar.gz yuzu-381baf783d39330007e75e409aee2fc685e95c01.tar.xz yuzu-381baf783d39330007e75e409aee2fc685e95c01.zip | |
gl_shader_decompiler: Get rid of variable shadowing warnings
A variable with the same name was previously declared in an outer scope.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 0e9c3e990..f9ef9d194 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -3308,8 +3308,8 @@ private: | |||
| 3308 | Tegra::Shader::VmadType type, u64 byte_height) { | 3308 | Tegra::Shader::VmadType type, u64 byte_height) { |
| 3309 | const std::string value = [&]() { | 3309 | const std::string value = [&]() { |
| 3310 | if (!is_chunk) { | 3310 | if (!is_chunk) { |
| 3311 | const auto offset = static_cast<u32>(byte_height * 8); | 3311 | const auto shift = static_cast<u32>(byte_height * 8); |
| 3312 | return "((" + op + " >> " + std::to_string(offset) + ") & 0xff)"; | 3312 | return "((" + op + " >> " + std::to_string(shift) + ") & 0xff)"; |
| 3313 | } | 3313 | } |
| 3314 | const std::string zero = "0"; | 3314 | const std::string zero = "0"; |
| 3315 | 3315 | ||