summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-06 15:44:33 +0100
committerGitHub <noreply@github.com>2018-03-06 15:44:33 +0100
commit4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (patch)
tree8ebf5dc57613554bb8652bf29dbff88e12fce976 /platform/x11
parent2efd7add4a947b2b5dcab072d1f8ee297735088e (diff)
parentad67911f1a45370558f968cdc1540f707534c28f (diff)
Merge pull request #17304 from bruvzg/gl_core_profile
[GL] Explicitly set OpenGL 3.3 profile to Core (X11, Windows) and enable GLES2 on Windows.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/context_gl_x11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/x11/context_gl_x11.cpp b/platform/x11/context_gl_x11.cpp
index 7a659a2734..1a7cbc0d6d 100644
--- a/platform/x11/context_gl_x11.cpp
+++ b/platform/x11/context_gl_x11.cpp
@@ -170,6 +170,7 @@ Error ContextGL_X11::initialize() {
static int context_attribs[] = {
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MINOR_VERSION_ARB, 3,
+ GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB /*|GLX_CONTEXT_DEBUG_BIT_ARB*/,
None
};