Demos (master): opengles2/es2tri: add precision qualifier to the fragment shader

Emil Velikov evelikov at kemper.freedesktop.org
Mon Jan 27 11:50:05 UTC 2014


Module: Demos
Branch: master
Commit: 18a2f916afcb482458d03b468b46cf271953d789
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=18a2f916afcb482458d03b468b46cf271953d789

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Sun Jan 19 16:28:33 2014 +0000

opengles2/es2tri: add precision qualifier to the fragment shader

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>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.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"




More information about the mesa-commit mailing list