mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
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
1 changed files with 2 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue