summaryrefslogtreecommitdiff
path: root/glamor/glamor_core.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2011-08-23 14:04:07 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2011-09-26 16:47:02 +0800
commit54c91079d2bd21d3fd97b6d5fa3ba5c4a86b6337 (patch)
tree2e5eeefd93811c61d2b1fe0187e61174e640cb98 /glamor/glamor_core.c
parentb4f265c7f9bcb7824df19ea915ab32fe84d9ec53 (diff)
glamor-gles2: Add explicit precision qualifiers for gles2.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_core.c')
-rw-r--r--glamor/glamor_core.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c
index d4588e28a..3609600bc 100644
--- a/glamor/glamor_core.c
+++ b/glamor/glamor_core.c
@@ -151,10 +151,11 @@ glamor_init_finish_access_shaders(ScreenPtr screen)
"}\n";
const char *fs_source =
+ GLAMOR_DEFAULT_PRECISION
"varying vec2 source_texture;\n"
"uniform sampler2D sampler;\n"
- "uniform int no_revert;"
- "uniform int swap_rb;"
+ "uniform int no_revert;\n"
+ "uniform int swap_rb;\n"
"void main()\n"
"{\n"
" if (no_revert == 1) \n"
@@ -174,10 +175,11 @@ glamor_init_finish_access_shaders(ScreenPtr screen)
"}\n";
const char *set_alpha_source =
+ GLAMOR_DEFAULT_PRECISION
"varying vec2 source_texture;\n"
"uniform sampler2D sampler;\n"
- "uniform int no_revert;"
- "uniform int swap_rb;"
+ "uniform int no_revert;\n"
+ "uniform int swap_rb;\n"
"void main()\n"
"{\n"
" if (no_revert == 1) \n"