PixelShaderGen: Don't make local lookup tables "static".

This commit is contained in:
Tony Wasserka 2014-03-06 19:28:29 +01:00
parent 0ce92e0162
commit 2067f88e0f
1 changed files with 16 additions and 16 deletions

View File

@ -800,7 +800,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP
} }
else else
{ {
static const char *function_table[] = const char *function_table[] =
{ {
"(((%s.r&255) > %s.r) ? (%s&255): int3(0,0,0))", // TEVCMP_R8_GT "(((%s.r&255) > %s.r) ? (%s&255): int3(0,0,0))", // TEVCMP_R8_GT
"(((%s.r&255) == %s.r) ? (%s&255): int3(0,0,0))", // TEVCMP_R8_EQ "(((%s.r&255) == %s.r) ? (%s&255): int3(0,0,0))", // TEVCMP_R8_EQ
@ -844,7 +844,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP
} }
else else
{ {
static const char *function_table[] = const char *function_table[] =
{ {
"(((%s.r&255) > (%s.r&255)) ? (%s.a&255) : 0)", // TEVCMP_R8_GT "(((%s.r&255) > (%s.r&255)) ? (%s.a&255) : 0)", // TEVCMP_R8_GT
"(((%s.r&255) == (%s.r&255)) ? (%s.a&255) : 0)", // TEVCMP_R8_EQ "(((%s.r&255) == (%s.r&255)) ? (%s.a&255) : 0)", // TEVCMP_R8_EQ