PDA

View Full Version : Sharing information between GL contexts on Linux



Lipton
08-18-2011, 01:34 AM
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?

Alfonse Reinheart
08-18-2011, 03:12 AM
glXCreateContext takes as a parameter an OpenGL context that it will share objects with. So this is done as part of context creation.

Lipton
08-18-2011, 04:44 AM
Thanks!