LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   share display list between two context in GLX (https://www.linuxquestions.org/questions/programming-9/share-display-list-between-two-context-in-glx-633404/)

knobby67 04-06-2008 06:03 AM

share display list between two context in GLX
 
Hi all,
I'm running two screens at present, I display using opengl display lists, however I've found that I have to load a model/display list in twice once for each screen. There appears to be some glx commands which allow me to share display lists between screens, however to be honest I can't follow the documentation or find any examples.
Can anyone show me how to do this or point me in the direction of instructions?
I'm using opengl with GLX on Debian, I create the windows using XCreateWindow, set the context with glXMakeCurrent and buffer with glXSwapBuffers.

Thanks for the help :)


All times are GMT -5. The time now is 09:25 AM.