Sharing information between GL contexts on Linux

Hi all,

Very simple question: I’m trying to share information (GL states, buffer, textures, …) between GL contexts living in different threads. I saw that on Windows there is wglShareLists() for that purpose, and on Mac OS X some sharing is also possible. Now I’m wondering how to do this on Linux.

Any ideas?

glXCreateContext takes as a parameter an OpenGL context that it will share objects with. So this is done as part of context creation.