PDA

View Full Version : OpenGL and Multithreads



Agostino
09-17-2008, 08:47 AM
I have a question, do all Opengl's calls must be in main thread? Can I use the second thread for all Opengl's calls? The main thread runs also the dispatch of window's messages, the second not.

Thanks for all answers.

Zengar
09-17-2008, 09:08 AM
All OpenGL commands have to be called in the same thread that has called MakeCurrent, with another words, in a current thread.

Agostino
09-17-2008, 09:24 AM
Could I have problems if Windows's messages are dispacthed in other thread?