diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index 1fd685b33..aceaf4e70 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -240,7 +240,11 @@ void DisplaySettings::setDefaults() _implicitBufferAttachmentRenderMask = DEFAULT_IMPLICIT_BUFFER_ATTACHMENT; _implicitBufferAttachmentResolveMask = DEFAULT_IMPLICIT_BUFFER_ATTACHMENT; +#ifdef OSG_GL3_FEATURES + _glContextVersion = "3.3"; +#else _glContextVersion = "1.0"; +#endif _glContextFlags = 0; _glContextProfileMask = 0; diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index e73ec3e6a..40fda7d08 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -239,7 +239,11 @@ GraphicsContext::Traits::Traits(DisplaySettings* ds): swapBarrier(0), useMultiThreadedOpenGLEngine(false), useCursor(true), +#ifdef OSG_GL3_FEATURES + glContextVersion("3.3"), +#else glContextVersion("1.0"), +#endif glContextFlags(0), glContextProfileMask(0), sharedContext(0),