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

Author: Emil Velikov <emil.l.veli...@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.veli...@gmail.com>
Reviewed-by: Tapani Pälli <tapani.pa...@intel.com>
Reviewed-by: Brian Paul <bri...@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"

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to