diff options
author | David Robillard <d@drobilla.net> | 2019-09-14 10:30:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-14 11:19:55 +0200 |
commit | dd6a9c09695161814d53fc2402178eaab348ca85 (patch) | |
tree | 073bac38bb33de95088e80c607cc6adf9093a71b /pugl/detail/x11_gl.c | |
parent | 2c8d8e2335c178b5818a219bcf4df149293d549a (diff) | |
download | pugl-dd6a9c09695161814d53fc2402178eaab348ca85.tar.gz pugl-dd6a9c09695161814d53fc2402178eaab348ca85.tar.bz2 pugl-dd6a9c09695161814d53fc2402178eaab348ca85.zip |
Add support for using a debug OpenGL context
Diffstat (limited to 'pugl/detail/x11_gl.c')
-rw-r--r-- | pugl/detail/x11_gl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c index ea93de2..f5dbe2c 100644 --- a/pugl/detail/x11_gl.c +++ b/pugl/detail/x11_gl.c @@ -119,6 +119,9 @@ puglX11GlCreate(PuglView* view) const int ctx_attrs[] = { GLX_CONTEXT_MAJOR_VERSION_ARB, view->hints[PUGL_CONTEXT_VERSION_MAJOR], GLX_CONTEXT_MINOR_VERSION_ARB, view->hints[PUGL_CONTEXT_VERSION_MINOR], + GLX_CONTEXT_FLAGS_ARB, (view->hints[PUGL_USE_DEBUG_CONTEXT] + ? GLX_CONTEXT_DEBUG_BIT_ARB + : 0), GLX_CONTEXT_PROFILE_MASK_ARB, (view->hints[PUGL_USE_COMPAT_PROFILE] ? GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB : GLX_CONTEXT_CORE_PROFILE_BIT_ARB), |