summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-12 22:26:04 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-13 11:11:08 -0800
commit29d6dd609c4e77a6d2a6bcac9f48e44cc0ab8814 (patch)
tree698cf605b91805cf01f0f5a3f9a305017fb58d65 /Source/Core/VideoCommon/PixelShaderGen.cpp
parent18cf8ac7670a9ed53cf3d78d55dbcdffcf0d9605 (diff)
Fix non-constexpr format strings
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 8aaba2e4e0..673c97ec9b 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -5,6 +5,7 @@
#include <cmath>
#include <cstdio>
+#include <fmt/format.h>
#include "Common/Assert.h"
#include "Common/CommonTypes.h"
@@ -1819,7 +1820,7 @@ static void WriteAlphaTest(ShaderCode& out, const pixel_shader_uid_data* uid_dat
if (has_no_arguments)
out.Write("{}", tev_alpha_funcs_table[mode]);
else
- out.Write(tev_alpha_funcs_table[mode], ref);
+ out.Write(fmt::runtime(tev_alpha_funcs_table[mode]), ref);
};
out.SetConstantsUsed(C_ALPHA, C_ALPHA);