|
|
|
@ -94,7 +94,7 @@ WindowlessGlxContext::WindowlessGlxContext(const WindowlessGlxContext::Configura |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
0 |
|
|
|
0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], nullptr, True, contextAttributes); |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], configuration.sharedContext(), True, contextAttributes); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
/* Fall back to (forward compatible) GL 2.1 if core context creation fails */ |
|
|
|
/* Fall back to (forward compatible) GL 2.1 if core context creation fails */ |
|
|
|
@ -105,7 +105,7 @@ WindowlessGlxContext::WindowlessGlxContext(const WindowlessGlxContext::Configura |
|
|
|
GLX_CONTEXT_FLAGS_ARB, GLint(flags), |
|
|
|
GLX_CONTEXT_FLAGS_ARB, GLint(flags), |
|
|
|
0 |
|
|
|
0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], nullptr, True, fallbackContextAttributes); |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], configuration.sharedContext(), True, fallbackContextAttributes); |
|
|
|
|
|
|
|
|
|
|
|
/* Fall back to (forward compatible) GL 2.1 if we are on binary NVidia/AMD
|
|
|
|
/* Fall back to (forward compatible) GL 2.1 if we are on binary NVidia/AMD
|
|
|
|
drivers on Linux. Instead of creating forward-compatible context with |
|
|
|
drivers on Linux. Instead of creating forward-compatible context with |
|
|
|
@ -142,7 +142,7 @@ WindowlessGlxContext::WindowlessGlxContext(const WindowlessGlxContext::Configura |
|
|
|
GLX_CONTEXT_FLAGS_ARB, GLint(flags & ~Configuration::Flag::ForwardCompatible), |
|
|
|
GLX_CONTEXT_FLAGS_ARB, GLint(flags & ~Configuration::Flag::ForwardCompatible), |
|
|
|
0 |
|
|
|
0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], nullptr, True, fallbackContextAttributes); |
|
|
|
_context = glXCreateContextAttribsARB(_display, configs[0], configuration.sharedContext(), True, fallbackContextAttributes); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Revert back the old context */ |
|
|
|
/* Revert back the old context */ |
|
|
|
|