From d0b1f2bd05a2fcadbb4c148be2105e337dd986e8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 23 Jun 2021 09:59:56 -0400 Subject: General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable Also removes some deprecated API usages. --- src/video_core/renderer_opengl/gl_arb_decompiler.cpp | 2 +- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp index 3e4d88c30..e8d8d2aa5 100644 --- a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp @@ -454,7 +454,7 @@ private: template void AddExpression(std::string_view text, Args&&... args) { - shader_source += fmt::format(text, std::forward(args)...); + shader_source += fmt::format(fmt::runtime(text), std::forward(args)...); } template diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index ac78d344c..9c28498e8 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -96,7 +96,7 @@ public: // etc). template void AddLine(std::string_view text, Args&&... args) { - AddExpression(fmt::format(text, std::forward(args)...)); + AddExpression(fmt::format(fmt::runtime(text), std::forward(args)...)); AddNewLine(); } -- cgit v1.2.3