Reputation: 11436
To share OpenGL objects between different contexts (presumably running in different threads) we use wglShareLists() on Windows.How is it done for Linux?Has glx an API to do this kind of things?
Upvotes: 4
Views: 2029
Reputation: 43319
To do this in GLX, you would pass a handle to the context you want to share resources with in your call to glXCreateContext (...)
or glXCreateNewContext (...)
. It is really that simple, instead of having a special API function for this purpose in GLX, it's built-in to the function you use to create a context.
Upvotes: 5