Added OSG_GL_CONTEXT_STRING cmake variable to set include/osg/GL headers that sets Traits::glContextVersion.

This commit is contained in:
Robert Osfield
2018-04-24 16:22:13 +01:00
parent 4dd1156444
commit 1aa0a80de7
4 changed files with 7 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ void DisplaySettings::setDefaults()
_implicitBufferAttachmentRenderMask = DEFAULT_IMPLICIT_BUFFER_ATTACHMENT;
_implicitBufferAttachmentResolveMask = DEFAULT_IMPLICIT_BUFFER_ATTACHMENT;
_glContextVersion = "1.0";
_glContextVersion = OSG_GL_CONTEXT_STRING;
_glContextFlags = 0;
_glContextProfileMask = 0;