diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-14 08:27:00 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-14 08:27:00 +0300 |
commit | f1ad3483af374c9c2ddc1ad4f65b28745c8224a1 (patch) | |
tree | 7cdb10370e81a5ff0a36d127ddfe85d9a48b7be2 /intern/ghost | |
parent | 91f04b82a50603e12722e5a00185a9bb75fa1dde (diff) |
get latest OpenGL version on Windows + AMD
When we ask for GL 3.2 compatibility profile:
AMD (Radeon HD 6970) gives us exactly this version
NVIDIA (Quadro K600) gives at least this version
Still need to check Intel behavior
We want *at least* the version requested, plus more recent features if
available.
Both GPUs tested & mentioned above are capable of GL 4.5. With this
commit they both give 4.5 to Blender.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 3bf3c9427f9..32bdbe6a611 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -627,7 +627,17 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty m_hWnd, m_hDC, profile_mask, - 3, 2, // GL version requested +#if 0 + 3, 2, // specific GL version requested + // AMD gives us exactly this version + // NVIDIA gives at least this version <-- desired behavior +#else + 2, 1, // any GL version >= 2.1 (hopefully the latest) + // we check later to ensure it's >= 3.2 on Windows + // TODO(merwin): fix properly! + // 2.1 ignores the profile bit & is incompatible with core profile + // query version of initial dummy context, request that + profile + debug +#endif (m_debug_context ? WGL_CONTEXT_DEBUG_BIT_ARB : 0), GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY); |