Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWin32.cpp')
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 54ac9d27bc7..7247753c655 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -626,7 +626,7 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty
m_wantNumOfAASamples,
m_hWnd,
m_hDC,
- WGL_CONTEXT_OPENGL_CORE_PROFILE_BIT,
+ WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
3, 2,
GHOST_OPENGL_WGL_CONTEXT_FLAGS,
GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY);
@@ -646,8 +646,14 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty
m_wantNumOfAASamples,
m_hWnd,
m_hDC,
+#if 1
0, // profile bit
- 0, 0,
+ 2, 1, // GL version requested
+#else
+ // switch to this for Blender 2.8 development
+ WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
+ 3, 2,
+#endif
GHOST_OPENGL_WGL_CONTEXT_FLAGS,
GHOST_OPENGL_WGL_RESET_NOTIFICATION_STRATEGY);
#else
@@ -684,8 +690,14 @@ GHOST_Context *GHOST_WindowWin32::newDrawingContext(GHOST_TDrawingContextType ty
m_wantNumOfAASamples,
m_hWnd,
m_hDC,
+#if 1
0, // profile bit
- 0, 0,
+ 2, 1, // GL version requested
+#else
+ // switch to this for Blender 2.8 development
+ EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT,
+ 3, 2,
+#endif
GHOST_OPENGL_EGL_CONTEXT_FLAGS,
GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY,
EGL_OPENGL_API);