Sharing OpenGL objects between contexts on Linux

To split OpenGL objects between different contexts (supposedly running on different threads), we use wglShareLists () for Windows. How is this done for Linux? Does the glx API have such things?

+4
source share
1 answer

To do this in GLX, you will pass the context descriptor you want to share the resources in your call to glXCreateContext (...) or glXCreateNewContext (...) . It really is that simple, instead of having a special API function for this purpose in GLX, it is built into the function that you use to create the context.

+5
source

Source: https://habr.com/ru/post/1502877/


All Articles