diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-10 21:15:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-10 21:15:55 +0300 |
commit | 4a21c51e2183c41079342a20239cb8d10f8f2e0c (patch) | |
tree | 235123f5c01824f04576b9b823e0b479cfab050d /src/utils/glxhelper.cpp | |
parent | 2c2d6c379cf994a61491983780edd3ab9852eaf4 (diff) | |
download | manaverse-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.gz manaverse-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.bz2 manaverse-4a21c51e2183c41079342a20239cb8d10f8f2e0c.tar.xz manaverse-4a21c51e2183c41079342a20239cb8d10f8f2e0c.zip |
In OpenGL context creation add support for compatability context.
Diffstat (limited to 'src/utils/glxhelper.cpp')
-rw-r--r-- | src/utils/glxhelper.cpp | 5 |
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 }; |