diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-20 14:25:12 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-20 14:25:15 -0400 |
commit | 8a86c8d48b7ca8b7c9217938a36720e616a2ebad (patch) | |
tree | b28a6241329122c70d28497daaffb88c1145c20c /src | |
parent | 381baf783d39330007e75e409aee2fc685e95c01 (diff) |
gl_shader_decompiler: Allow std::move to function in SetPredicate
If the variable being moved is const, then std::move will always perform
a copy (since it can't actually move the data).
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index f9ef9d194..a88cf8699 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -952,7 +952,7 @@ private: // Can't assign to the constant predicate. ASSERT(pred != static_cast<u64>(Pred::UnusedIndex)); - const std::string variable = 'p' + std::to_string(pred) + '_' + suffix; + std::string variable = 'p' + std::to_string(pred) + '_' + suffix; shader.AddLine(variable + " = " + value + ';'); declr_predicates.insert(std::move(variable)); } |