The deleted lines include:
- line 62:
GLXContext ctx_old = glXCreateContext(disp, vi, 0, GL_TRUE);
- line 67-69:
/* Destroy old context */
glXMakeCurrent(disp, 0, 0);
glXDestroyContext(disp, ctx_old);
Creating a dummy context is not required with GLX, as the specification for glXGetProcAddress
states:
Are function pointers context-independent? Yes. The pointer to an extension function can be used with any context [...]
which is in direct contrast to WGL's wglGetProcAddress
.
Furthermore, the reference DOES NOT specify explicitly, that a current context must be present.