summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-10-17 05:05:50 +0200
committerTillmann Karras <tilkax@gmail.com>2015-10-17 05:05:50 +0200
commit1df455bd130b83d1f559267da61ee6bc5375f715 (patch)
treec5022386518a6d40df35fadc98777cccc23c50d2 /Source/Core/VideoCommon
parentd85344bd58afc6594d01d65ed9ef46471a7cf2ed (diff)
PixelShaderGen: silence -Wformat-security warnings
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp4
1 files 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)");