Added __VERSION__<140 check for usage of gl_ClipVertex to avoid GL3 core profile usage issues

This commit is contained in:
Robert Osfield 2018-04-02 16:21:20 +01:00
parent 7ed0389051
commit 6c055e3400

View File

@ -10,7 +10,7 @@ char text_vert[] = "$OSG_GLSL_VERSION\n"
" texCoord = gl_MultiTexCoord0.xy;\n" " texCoord = gl_MultiTexCoord0.xy;\n"
" vertexColor = gl_Color;\n" " vertexColor = gl_Color;\n"
"\n" "\n"
"#ifndef GL_ES\n" "#if !defined(GL_ES) && __VERSION__<140\n"
" gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;\n" " gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;\n"
"#endif\n" "#endif\n"
"}\n" "}\n"