PixelShaderGen: silence -Wformat-security warnings

This commit is contained in:
Tillmann Karras 2015-10-17 05:05:50 +02:00
parent d85344bd58
commit 1df455bd13
1 changed files with 2 additions and 2 deletions

View File

@ -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)");