test1.cpp
Context c1;
Context c2(&c1);
int main()
{
Context c3(&c1);
return 0;
}
With glXMakeCurrent(...) shared condition, the test below confirm the error on a second context :
Succeeded to create context!
X Error of failed request: GLXBadContext
Major opcode of failed request: 144 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Serial number of failed request: 26
Current serial number in output stream: 29
Without the condition :
Succeeded to create context!
Succeeded to create context!
Creating a shared context...
Succeeded to create context!
test2.cpp
// Globals
Context c1;
Context c2(false, &c1);
int main()
{
std::cout << "Creating a shared context..." << std::endl;
Context c3(false, &c1);
return 0;
}
And for that test too, the condition failed the context sharing creation
:?