Merge pull request #3177 from Tilka/fix_warnings

PixelShaderGen: silence -Wformat-security warnings
This commit is contained in:
Scott Mansell 2015-10-17 17:44:29 +13:00
commit ac8976689b
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)");