summaryrefslogtreecommitdiffstats
path: root/platform/x11/context_gl_x11.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2018-03-06 15:53:30 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2018-03-06 15:53:30 +0200
commitad67911f1a45370558f968cdc1540f707534c28f (patch)
tree8ebf5dc57613554bb8652bf29dbff88e12fce976 /platform/x11/context_gl_x11.cpp
parent2efd7add4a947b2b5dcab072d1f8ee297735088e (diff)
downloadredot-engine-ad67911f1a45370558f968cdc1540f707534c28f.tar.gz
Explicitly set OpenGL profile to core (X11, Windows).
Enable GLES2 on Windows.
Diffstat (limited to 'platform/x11/context_gl_x11.cpp')
-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
};