X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fwgl%2Fglcontext.cpp;h=ebca3f1912ef9ee67e1570c41ae71e98c5cb281f;hb=4727c8ca14f2d278a74e0abe64b7a31e68238a8a;hp=35ec8e9b1983471f5dd12e476f4a662d2deaa7c4;hpb=c703f5b01bf5d7eeb13091e64109b58f5d12f53c;p=libs%2Fgui.git diff --git a/source/graphics/wgl/glcontext.cpp b/source/graphics/wgl/glcontext.cpp index 35ec8e9..ebca3f1 100644 --- a/source/graphics/wgl/glcontext.cpp +++ b/source/graphics/wgl/glcontext.cpp @@ -60,6 +60,12 @@ void GLContext::platform_init(const GLOptions &opts) ctx_attribs.push_back(WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB); } + if(opts.core_profile) + { + ctx_attribs.push_back(WGL_CONTEXT_PROFILE_MASK_ARB); + ctx_attribs.push_back(WGL_CONTEXT_CORE_PROFILE_BIT_ARB); + } + if(opts.gl_version_major) { ctx_attribs.push_back(WGL_CONTEXT_MAJOR_VERSION_ARB);