PDA

View Full Version : Render from a new thread



David Doria
03-24-2009, 01:57 PM
I saw that you have to call this:



glXMakeCurrent(glXGetCurrentDisplay(), glXGetCurrentDrawable(), ?? )


if you want to start rendering from a new thread. I don't understand the third parameter.

Any clues? (I saw this: http://www.x.org/archive/X11R6.8.2/doc/glXCopyContext.3.html and still dont get it).

Thanks,

Dave

ZbuffeR
03-24-2009, 02:36 PM
The link you provide is not the good one.
http://www.x.org/archive/X11R6.8.2/doc/glXMakeCurrent.3.html
The third parameter is a GLXContext, ie. the one that was given by cretecontext :
http://www.x.org/archive/X11R6.8.2/doc/glXCreateContext.3.html