glXMakeCurrent
glXMakeCurrent is a function in the GLX API used on the X Window System to bind an OpenGL rendering context to a drawable for the calling thread. By making a context current, subsequent OpenGL commands issued by that thread render into the specified drawable (window or pixmap).
Signature: GLboolean glXMakeCurrent(Display* dpy, GLXDrawable drawable, GLXContext ctx);
It returns GL_TRUE on success and GL_FALSE on failure. If ctx is non-NULL, the specified context becomes
Notes: glXMakeCurrent operates on a per-thread basis; different threads may have different current contexts. To detach