revision 1252:2fb29172ee79
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1252:2fb29172ee79 |
parent | 1251:b8ab59d39756 |
child | 1253:5aa14eeaad5a |
author | nkeynes |
date | Sat Mar 03 16:16:57 2012 +1000 (12 years ago) |
Include precision spec for GLES only
1.1 --- a/src/pvr2/shaders.glsl Sat Mar 03 16:11:28 2012 +10001.2 +++ b/src/pvr2/shaders.glsl Sat Mar 03 16:16:57 2012 +10001.3 @@ -86,7 +86,9 @@1.4 }1.6 #fragment DEFAULT_FRAGMENT_SHADER1.7 +#ifdef HAVE_GLES21.8 precision mediump float;1.9 +#endif1.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.16 #fragment BASIC_FRAGMENT_SHADER1.17 +#ifdef HAVE_GLES21.18 precision mediump float;1.19 +#endif1.20 +1.21 uniform sampler2D primary_texture;1.22 varying vec4 frag_colour;1.23 varying vec2 frag_texcoord;
.