Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Sonicadvance1 committed Jun 18, 2013
1 parent c4eb659 commit 9c32c92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit 9c32c92

Please sign in to comment.