jpeg pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=062e632d9d1bb1cdeb28dfaa530649a7c584735d

commit 062e632d9d1bb1cdeb28dfaa530649a7c584735d
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Tue Jan 26 16:25:21 2016 +0900

    Add floating point precision to shaders for gl_2d.c
---
 media/code_c/tutorial/gl2d/gl_2d.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/media/code_c/tutorial/gl2d/gl_2d.c 
b/media/code_c/tutorial/gl2d/gl_2d.c
index d0a990e..aa14c97 100644
--- a/media/code_c/tutorial/gl2d/gl_2d.c
+++ b/media/code_c/tutorial/gl2d/gl_2d.c
@@ -240,6 +240,9 @@ init_shaders(GLData *gld)
    Evas_GL_API *gl = gld->glapi;
 
    GLbyte vertex_shader[] =
+       "#ifdef GL_ES\n"
+       "precision mediump float;\n"
+       "#endif\n"
        "attribute vec4 a_position;\n"
        "attribute vec4 a_color;\n"
        "uniform mat4 u_mvp_mat;\n"
@@ -250,6 +253,9 @@ init_shaders(GLData *gld)
        "   v_color = a_color;\n"
        "}";
    GLbyte fragment_shader[] =
+       "#ifdef GL_ES\n"
+       "precision highp float;\n"
+       "#endif\n"
        "varying vec4 v_color;\n"
        "void main()\n"
        "{\n"

-- 


Reply via email to