Explorar o código

gl_shader_decompiler: Get rid of variable shadowing warnings

A variable with the same name was previously declared in an outer scope.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
381baf783d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 2 - 2
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -3308,8 +3308,8 @@ private:
                                   Tegra::Shader::VmadType type, u64 byte_height) {
                     const std::string value = [&]() {
                         if (!is_chunk) {
-                            const auto offset = static_cast<u32>(byte_height * 8);
-                            return "((" + op + " >> " + std::to_string(offset) + ") & 0xff)";
+                            const auto shift = static_cast<u32>(byte_height * 8);
+                            return "((" + op + " >> " + std::to_string(shift) + ") & 0xff)";
                         }
                         const std::string zero = "0";