From 11230c3f0ba4b9e397ebef7192d5f1a0040bd7de Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 2 Apr 2018 16:21:20 +0100 Subject: [PATCH] Added __VERSION__<140 check for usage of gl_ClipVertex to avoid GL3 core profile usage issues --- src/osgText/shaders/text_vert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"