aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_glview.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-07-26 16:37:41 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-07-26 16:37:41 +0000
commit618317e0c1df22a39b852b9d4e0a82fe1c019c47 (patch)
treebea108455699fa9b2409186ad3b8fb8b1eb43f54 /legacy/elementary/src/bin/test_glview.c
parentelm tooltip: Fixed warnings. (diff)
downloadefl-618317e0c1df22a39b852b9d4e0a82fe1c019c47.tar.gz
elementary: fix compilation of shader with OpenGL.
SVN revision: 61765
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_glview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_glview.c b/legacy/elementary/src/bin/test_glview.c
index 76c95ef60f..a056fd3f6e 100644
--- a/legacy/elementary/src/bin/test_glview.c
+++ b/legacy/elementary/src/bin/test_glview.c
@@ -326,7 +326,9 @@ static const char vertex_shader[] =
"}\n";
static const char fragment_shader[] =
+ "#ifdef GL_ES\n"
"precision mediump float;\n"
+ "#endif\n"
"uniform vec4 color;\n"
"uniform vec3 light;\n"
"varying vec3 rotated_normal;\n"