From 10fb5c0093431a7eb7d71e286764b9b75e3177db Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Thu, 3 Feb 2011 18:35:24 -0200 Subject: [PATCH] Properly defining default precision in es2gears fragment shader. Signed-off-by: Ricardo Salveti de Araujo --- src/egl/opengles2/es2gears.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/egl/opengles2/es2gears.c b/src/egl/opengles2/es2gears.c index 0018ea9..37fb6a4 100644 --- a/src/egl/opengles2/es2gears.c +++ b/src/egl/opengles2/es2gears.c @@ -607,9 +607,6 @@ gears_idle(void) } static const char vertex_shader[] = -"#ifdef GL_ES\n" -"precision mediump float;\n" -"#endif\n" "attribute vec3 position;\n" "attribute vec3 normal;\n" "\n" @@ -638,6 +635,7 @@ static const char vertex_shader[] = "}"; static const char fragment_shader[] = +"precision mediump float;\n" "varying vec4 Color;\n" "\n" "void main(void)\n" -- 1.7.2.3