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