summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-16 00:58:33 +0200
committerLioncash <mathew1800@gmail.com>2019-10-16 00:58:36 +0200
commit04a1161354e9032e36d48d112e40dce2428b049d (patch)
tree6aa075e43c754e8ce7e60a29de81c95b25b4a39f /src
parentgl_shader_decompiler: Mark ASTDecompiler/ExprDecompiler parameters as const references where applicable (diff)
downloadyuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar.gz
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar.bz2
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar.lz
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar.xz
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.tar.zst
yuzu-04a1161354e9032e36d48d112e40dce2428b049d.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 1 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 20dc7d3db..bd0c5c5d6 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/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 {