aboutsummaryrefslogtreecommitdiffstats
path: root/src/win_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win_gl.c')
-rw-r--r--src/win_gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win_gl.c b/src/win_gl.c
index 444f87f..0ca9909 100644
--- a/src/win_gl.c
+++ b/src/win_gl.c
@@ -198,10 +198,10 @@ puglWinGlCreate(PuglView* view)
view->hints[PUGL_CONTEXT_VERSION_MINOR],
WGL_CONTEXT_FLAGS_ARB,
- (view->hints[PUGL_USE_DEBUG_CONTEXT] ? WGL_CONTEXT_DEBUG_BIT_ARB : 0),
+ (view->hints[PUGL_CONTEXT_DEBUG] ? WGL_CONTEXT_DEBUG_BIT_ARB : 0),
WGL_CONTEXT_PROFILE_MASK_ARB,
- (view->hints[PUGL_USE_COMPAT_PROFILE]
+ ((view->hints[PUGL_CONTEXT_PROFILE] == PUGL_OPENGL_COMPATIBILITY_PROFILE)
? WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB
: WGL_CONTEXT_CORE_PROFILE_BIT_ARB),