Added __VERSION__<140 check for usage of gl_ClipVertex to avoid GL3 core profile usage issues
This commit is contained in:
parent
98c147ff9e
commit
11230c3f0b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user