X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fglx%2Fglcontext.cpp;h=3ee8865d7559e0890df797cb79ef893097f50847;hb=4727c8ca14f2d278a74e0abe64b7a31e68238a8a;hp=54541e969802216d19b51fe79ee40d05555c0471;hpb=5dde3e3ca938df53f0fbd0ee5cc4576684e1dbaf;p=libs%2Fgui.git diff --git a/source/graphics/glx/glcontext.cpp b/source/graphics/glx/glcontext.cpp index 54541e9..3ee8865 100644 --- a/source/graphics/glx/glcontext.cpp +++ b/source/graphics/glx/glcontext.cpp @@ -114,6 +114,12 @@ void GLContext::platform_init(const GLOptions &opts) ctx_attribs.push_back(GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB); } + if(opts.core_profile) + { + ctx_attribs.push_back(GLX_CONTEXT_PROFILE_MASK_ARB); + ctx_attribs.push_back(GLX_CONTEXT_CORE_PROFILE_BIT_ARB); + } + if(opts.gl_version_major) { ctx_attribs.push_back(GLX_CONTEXT_MAJOR_VERSION_ARB);