OpenGL: debug context on Windows
Enable based on --debug-gpu at the command line. Linux already works this way.
This commit is contained in:
parent
b7f3fb0ef9
commit
f3d65ad23c
|
@ -46,14 +46,6 @@
|
|||
extern "C" WGLEWContext *wglewContext;
|
||||
#endif
|
||||
|
||||
#ifndef GHOST_OPENGL_WGL_CONTEXT_FLAGS
|
||||
# ifdef WITH_GPU_DEBUG
|
||||
# define GHOST_OPENGL_WGL_CONTEXT_FLAGS WGL_CONTEXT_DEBUG_BIT_ARB
|
||||
# else
|
||||
# define GHOST_OPENGL_WGL_CONTEXT_FLAGS 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY
|
||||
#define GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY 0
|
||||
#endif
|
||||
|
|
|
@ -628,7 +628,7 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty
|
|||
m_hDC,
|
||||
profile_mask,
|
||||
3, 2, // GL version requested
|
||||
GHOST_OPENGL_WGL_CONTEXT_FLAGS,
|
||||
(m_debug_context ? WGL_CONTEXT_DEBUG_BIT_ARB : 0),
|
||||
GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY);
|
||||
|
||||
if (context->initializeDrawingContext())
|
||||
|
|
Loading…
Reference in New Issue