From 4a21c51e2183c41079342a20239cb8d10f8f2e0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 10 Jul 2014 21:15:55 +0300 Subject: In OpenGL context creation add support for compatability context. --- src/utils/glxhelper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/glxhelper.cpp') diff --git a/src/utils/glxhelper.cpp b/src/utils/glxhelper.cpp index bd50d8c61..e27124325 100644 --- a/src/utils/glxhelper.cpp +++ b/src/utils/glxhelper.cpp @@ -39,7 +39,8 @@ static int ErrorHandler(Display *d A_UNUSED, XErrorEvent *e A_UNUSED) void *GlxHelper::createContext(const unsigned long window, void *const display0, const int major, - const int minor) + const int minor, + const int profile) { Display *const display = static_cast(display0); XSync(display, false); @@ -88,7 +89,7 @@ void *GlxHelper::createContext(const unsigned long window, { GLX_CONTEXT_MAJOR_VERSION_ARB, major, GLX_CONTEXT_MINOR_VERSION_ARB, minor, - GLX_CONTEXT_PROFILE_MASK_ARB, 0x01, // core profile + GLX_CONTEXT_PROFILE_MASK_ARB, profile, 0, 0 }; -- cgit v1.2.3-60-g2f50