[Mesa-dev] [PATCH demos] opengles2/es2tri: add precision qualifier to the fragment shader

Emil Velikov emil.l.velikov at gmail.com
Sun Jan 19 08:34:16 PST 2014


The missing qualifier causes failure during the compilation stage.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73631
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/egl/opengles2/es2tri.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/opengles2/es2tri.c b/src/egl/opengles2/es2tri.c
index 6dcc1b8..349a576 100644
--- a/src/egl/opengles2/es2tri.c
+++ b/src/egl/opengles2/es2tri.c
@@ -139,6 +139,7 @@ static void
 create_shaders(void)
 {
    static const char *fragShaderText =
+      "precision mediump float;\n"
       "varying vec4 v_color;\n"
       "void main() {\n"
       "   gl_FragColor = v_color;\n"
-- 
1.8.5.2



More information about the mesa-dev mailing list