Explorar o código

gl_shader_decompiler: Fold flow_var constant into GetFlowVariable()

This is only ever used within this function, so we can narrow it's scope
down.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
04a1161354
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 1 - 3
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -2271,10 +2271,8 @@ private:
     ShaderWriter code;
 };
 
-static constexpr std::string_view flow_var = "flow_var_";
-
 std::string GetFlowVariable(u32 i) {
-    return fmt::format("{}{}", flow_var, i);
+    return fmt::format("flow_var_{}", i);
 }
 
 class ExprDecompiler {