diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-15 11:49:07 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-15 11:49:07 +0300 |
commit | 2c03d0186a014e4478aecb8e2a000bf2d530db10 (patch) | |
tree | 4a152bf1b8282414ce0401c93757ed68dd07ff66 | |
parent | ad6e7a0be15cf6c47635987a04cd5824fb5de054 (diff) |
OpenGL: debug context on Windows
Enable based on --debug-gpu at the command line. Linux already works
this way.
This commit in master (2.78 timeframe) is the smallest change that gets
the desired result. I did a similar commit in blender2.8. Most ongoing
GL debug work will go into 2.8, not 2.7x.
In support of T49089
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 6a27d7aadf9..2aa950f8278 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -649,7 +649,7 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 3, 2, #endif - GHOST_OPENGL_WGL_CONTEXT_FLAGS, + (m_debug_context ? WGL_CONTEXT_DEBUG_BIT_ARB : 0), GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY); #else # error |