Remove saturate function define in GLSL since we use clamp everywhere instead. Change the function defines over to just regular defines since Qualcomm can't handle function defines at all it seems.

This commit is contained in:
Ryan Houdek 2013-06-18 12:42:14 -05:00
parent c4eb659fec
commit 9c32c923bc
1 changed files with 2 additions and 3 deletions

View File

@ -524,9 +524,8 @@ void ProgramShaderCache::CreateHeader ( void )
"#define float4 vec4\n"
// hlsl to glsl function translation
"#define frac(x) fract(x)\n"
"#define saturate(x) clamp(x, 0.0f, 1.0f)\n"
"#define lerp(x, y, z) mix(x, y, z)\n"
"#define frac fract\n"
"#define lerp mix\n"
// glsl 120 hack
"%s\n"