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:
parent
c4eb659fec
commit
9c32c923bc
|
@ -524,9 +524,8 @@ void ProgramShaderCache::CreateHeader ( void )
|
||||||
"#define float4 vec4\n"
|
"#define float4 vec4\n"
|
||||||
|
|
||||||
// hlsl to glsl function translation
|
// hlsl to glsl function translation
|
||||||
"#define frac(x) fract(x)\n"
|
"#define frac fract\n"
|
||||||
"#define saturate(x) clamp(x, 0.0f, 1.0f)\n"
|
"#define lerp mix\n"
|
||||||
"#define lerp(x, y, z) mix(x, y, z)\n"
|
|
||||||
|
|
||||||
// glsl 120 hack
|
// glsl 120 hack
|
||||||
"%s\n"
|
"%s\n"
|
||||||
|
|
Loading…
Reference in New Issue