diff --git a/src/osgText/shaders/text_vert.cpp b/src/osgText/shaders/text_vert.cpp index 7791e06ad..29f1be286 100644 --- a/src/osgText/shaders/text_vert.cpp +++ b/src/osgText/shaders/text_vert.cpp @@ -10,7 +10,7 @@ char text_vert[] = "$OSG_GLSL_VERSION\n" " texCoord = gl_MultiTexCoord0.xy;\n" " vertexColor = gl_Color;\n" "\n" - "#ifndef GL_ES\n" + "#if !defined(GL_ES) && __VERSION__<140\n" " gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;\n" "#endif\n" "}\n"