# HG changeset patch # User nkeynes # Date 1330755417 -36000 # Node ID 2fb29172ee79181b6fa742291c007ba345789053 # Parent b8ab59d39756d8797f6d9e73e11097f4ce328d9d Include precision spec for GLES only --- a/src/pvr2/shaders.glsl Sat Mar 03 16:11:28 2012 +1000 +++ b/src/pvr2/shaders.glsl Sat Mar 03 16:16:57 2012 +1000 @@ -86,7 +86,9 @@ } #fragment DEFAULT_FRAGMENT_SHADER +#ifdef HAVE_GLES2 precision mediump float; +#endif uniform float alpha_ref; uniform sampler2D primary_texture; uniform sampler2D palette_texture; @@ -148,7 +150,10 @@ } #fragment BASIC_FRAGMENT_SHADER +#ifdef HAVE_GLES2 precision mediump float; +#endif + uniform sampler2D primary_texture; varying vec4 frag_colour; varying vec2 frag_texcoord;