SDL, OpenGL and threads


Is there anyway possible to transfer the SDL/OpenGL graphics stuff

(context, drawable and display) from one thread to another? Basically, I
would like my program to have a “redraw” thread that redraws the screen.
I setup the OpenGL stuff using SDL on the main thread and then try and
transfer it with glXMakeCurrent(…). Unfortunately this does not work!
Anybody come across this problem? Anybody got any ideas?


Chris Kennedy