From 1df455bd130b83d1f559267da61ee6bc5375f715 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 17 Oct 2015 05:05:50 +0200 Subject: [PATCH] PixelShaderGen: silence -Wformat-security warnings --- Source/Core/VideoCommon/PixelShaderGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 16f24cacb2..8298d355f6 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -896,7 +896,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data* uid_data, int n, AP int mode = (cc.shift<<1)|cc.op; out.Write(" tevin_d.rgb + "); - out.Write(function_table[mode]); + out.Write("%s", function_table[mode]); } if (cc.clamp) out.Write(", int3(0,0,0), int3(255,255,255))"); @@ -926,7 +926,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data* uid_data, int n, AP int mode = (ac.shift<<1)|ac.op; out.Write(" tevin_d.a + "); - out.Write(function_table[mode]); + out.Write("%s", function_table[mode]); } if (ac.clamp) out.Write(", 0, 255)");