Page MenuHome
Paste P596

Masterwork From Distant Lands
ActivePublic

Authored by Dalai Felinto (dfelinto) on Jan 23 2018, 5:37 PM.
diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 061ac29945b..61e37dde6e7 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -173,9 +173,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;

Event Timeline

Dalai Felinto (dfelinto) changed the title of this paste from untitled to Masterwork From Distant Lands.
Dalai Felinto (dfelinto) updated the paste's language from autodetect to autodetect.