Page MenuHome
Paste P486

No OpenGL context
ActivePublic

Authored by Dalai Felinto (dfelinto) on Jun 7 2017, 6:31 PM.
diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 0a9dc900aed..84cdb96eb20 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -175,9 +175,11 @@ const bool GLXEW_ARB_create_context_robustness =
glxewInit();
#endif /* USE_GLXEW_INIT_WORKAROUND */
-
-
- if (GLXEW_ARB_create_context) {
+ if (s_sharedContext != NULL) {
+ m_context = s_sharedContext;
+ s_sharedCount++;
+ }
+ else if (GLXEW_ARB_create_context) {
int profileBitCore = m_contextProfileMask & GLX_CONTEXT_CORE_PROFILE_BIT_ARB;
int profileBitCompat = m_contextProfileMask & GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB;