Search
lxdream.org :: lxdream :: r1252:2fb29172ee79
lxdream 0.9.1
released Jun 29
Download Now
changeset1252:2fb29172ee79
parent1251:b8ab59d39756
child1253:5aa14eeaad5a
authornkeynes
dateSat Mar 03 16:16:57 2012 +1000 (7 years ago)
Include precision spec for GLES only
src/pvr2/shaders.glsl
1.1 --- a/src/pvr2/shaders.glsl Sat Mar 03 16:11:28 2012 +1000
1.2 +++ b/src/pvr2/shaders.glsl Sat Mar 03 16:16:57 2012 +1000
1.3 @@ -86,7 +86,9 @@
1.4 }
1.5
1.6 #fragment DEFAULT_FRAGMENT_SHADER
1.7 +#ifdef HAVE_GLES2
1.8 precision mediump float;
1.9 +#endif
1.10 uniform float alpha_ref;
1.11 uniform sampler2D primary_texture;
1.12 uniform sampler2D palette_texture;
1.13 @@ -148,7 +150,10 @@
1.14 }
1.15
1.16 #fragment BASIC_FRAGMENT_SHADER
1.17 +#ifdef HAVE_GLES2
1.18 precision mediump float;
1.19 +#endif
1.20 +
1.21 uniform sampler2D primary_texture;
1.22 varying vec4 frag_colour;
1.23 varying vec2 frag_texcoord;
.