diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h index dd7397489..d9b639d29 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h @@ -51,9 +51,9 @@ public: const auto var_def{var_alloc.AddDefine(inst, type)}; if (var_def.empty()) { // skip assigment. - code += fmt::format(format_str + 3, std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str + 3), std::forward<Args>(args)...); } else { - code += fmt::format(format_str, var_def, std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str), var_def, std::forward<Args>(args)...); } // TODO: Remove this code += '\n'; @@ -131,7 +131,7 @@ public: template <typename... Args> void Add(const char* format_str, Args&&... args) { - code += fmt::format(format_str, std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str), std::forward<Args>(args)...); // TODO: Remove this code += '\n'; } |