aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_gl.c')
-rw-r--r--src/x11_gl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/x11_gl.c b/src/x11_gl.c
index f1dc56b..de22b34 100644
--- a/src/x11_gl.c
+++ b/src/x11_gl.c
@@ -145,12 +145,14 @@ puglX11GlCreate(PuglView* view)
view->hints[PUGL_CONTEXT_VERSION_MINOR],
GLX_CONTEXT_FLAGS_ARB,
- (view->hints[PUGL_USE_DEBUG_CONTEXT] ? GLX_CONTEXT_DEBUG_BIT_ARB : 0),
+ (view->hints[PUGL_CONTEXT_DEBUG] ? GLX_CONTEXT_DEBUG_BIT_ARB : 0),
GLX_CONTEXT_PROFILE_MASK_ARB,
- (view->hints[PUGL_USE_COMPAT_PROFILE]
- ? GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB
- : GLX_CONTEXT_CORE_PROFILE_BIT_ARB),
+ (view->hints[PUGL_CONTEXT_API] == PUGL_OPENGL_ES_API
+ ? GLX_CONTEXT_ES2_PROFILE_BIT_EXT
+ : (view->hints[PUGL_CONTEXT_PROFILE] == PUGL_OPENGL_COMPATIBILITY_PROFILE
+ ? GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB
+ : GLX_CONTEXT_CORE_PROFILE_BIT_ARB)),
0};
const char* const extensions =