summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-10-17 17:44:29 +1300
committerScott Mansell <phiren@gmail.com>2015-10-17 17:44:29 +1300
commitac8976689b1a960c013281c5a461b1b92294337c (patch)
treedd45460c7bf5cf7d5dd8fa5dac583564b8137a66 /Source/Core/VideoCommon/PixelShaderGen.cpp
parente289cb87e577720cc9b1e3e93348a884ef539eb4 (diff)
parent1df455bd130b83d1f559267da61ee6bc5375f715 (diff)
Merge pull request #3177 from Tilka/fix_warnings
PixelShaderGen: silence -Wformat-security warnings
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-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)");