forked from enlightenment/efl
Revert "remove ifdef from glsl in glview shader - ifdefs not universally supported"
This reverts commit 54883cb7fb0c42f37615f1485e554d947b42c369.
This commit is contained in:
parent
bc5ce5c5b0
commit
f628d3487a
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue