forked from enlightenment/efl
remove ifdef from glsl in glview shader - ifdefs not universally supported
This commit is contained in:
parent
9368d61549
commit
d3861179f6
|
@ -327,9 +327,6 @@ static const char vertex_shader[] =
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char fragment_shader[] =
|
static const char fragment_shader[] =
|
||||||
"#ifdef GL_ES\n"
|
|
||||||
"precision mediump float;\n"
|
|
||||||
"#endif\n"
|
|
||||||
"uniform vec4 color;\n"
|
"uniform vec4 color;\n"
|
||||||
"uniform vec3 light;\n"
|
"uniform vec3 light;\n"
|
||||||
"varying vec3 rotated_normal;\n"
|
"varying vec3 rotated_normal;\n"
|
||||||
|
|
|
@ -70,9 +70,6 @@ init_shaders(GLData *gld)
|
||||||
"} \n";
|
"} \n";
|
||||||
|
|
||||||
GLbyte fShaderStr[] =
|
GLbyte fShaderStr[] =
|
||||||
"#ifdef GL_ES \n"
|
|
||||||
"precision mediump float; \n"
|
|
||||||
"#endif \n"
|
|
||||||
"void main() \n"
|
"void main() \n"
|
||||||
"{ \n"
|
"{ \n"
|
||||||
" gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n"
|
" gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n"
|
||||||
|
|
Loading…
Reference in New Issue