Revert "remove ifdef from glsl in glview shader - ifdefs not universally supported"

This reverts commit 54883cb7fb0c42f37615f1485e554d947b42c369.
This commit is contained in:
Carsten Haitzler 2013-11-09 15:21:22 +09:00
parent bc5ce5c5b0
commit f628d3487a
2 changed files with 6 additions and 0 deletions

View File

@ -327,6 +327,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"

View File

@ -70,6 +70,9 @@ init_shaders(GLData *gld)
"} \n";
GLbyte fShaderStr[] =
"#ifdef GL_ES \n"
"precision mediump float; \n"
"#endif \n"
"void main() \n"
"{ \n"
" gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n"