summaryrefslogtreecommitdiff
path: root/src/utils/glxhelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-10 21:15:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-10 21:15:55 +0300
commit4a21c51e2183c41079342a20239cb8d10f8f2e0c (patch)
tree235123f5c01824f04576b9b823e0b479cfab050d /src/utils/glxhelper.cpp
parent2c2d6c379cf994a61491983780edd3ab9852eaf4 (diff)
downloadplus-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.gz
plus-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.bz2
plus-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.xz
plus-4a21c51e2183c41079342a20239cb8d10f8f2e0c.zip
In OpenGL context creation add support for compatability context.
Diffstat (limited to 'src/utils/glxhelper.cpp')
-rw-r--r--src/utils/glxhelper.cpp5
1 files changed, 3 insertions, 2 deletions
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<Display*>(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
};