
Originally Posted by
Parallel OpenGL FAQ
1. Using one Context from Multiple Threads
* Q: Why does my OpenGL application crash/not work when I am rendering from another thread?
* A: The OpenGL context is thread-specific. You have to make it current in the thread using glXMakeCurrent, wglMakeCurrent or aglSetCurrentContext, depending on your operating system.
* Q: Why does it not work if I make my context current in another thread?
* A: One OpenGL context can only be current in one thread. You have to release the context in the the other thread first, by making another or no context current.
* Q: So how can I then make use of multiple processors with OpenGL?
* A: See Section 2.