When GL3 build is enabled, default context requested is version 3.3, enabling core profile by default.

This commit is contained in:
Daniel Emminizer
2018-04-24 06:31:32 -04:00
parent 490d3a8f21
commit d660b29ef0
2 changed files with 8 additions and 0 deletions

View File

@@ -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;

View File

@@ -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),