mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
Fix non-constexpr format strings
This commit is contained in:
parent
18cf8ac767
commit
29d6dd609c
5 changed files with 12 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue