gsdx-ogl: windows: properly setup context flags

* Use a core profile context
* Only enable the debug context in debug build

Close issue #353
This commit is contained in:
Gregory Hainaut 2014-11-20 22:11:30 +01:00
parent d21e6ff45f
commit 60c0eb7179
1 changed files with 3 additions and 0 deletions

View File

@ -57,7 +57,10 @@ bool GSWndWGL::CreateContext(int major, int minor)
// FIXME : Request a debug context to ease opengl development
// Note: don't support deprecated feature (pre openg 3.1)
//GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB | GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
#ifdef ENABLE_OGL_DEBUG
WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_DEBUG_BIT_ARB,
#endif
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
0
};