PDA

View Full Version : multithreading Problem



tpp
10-27-2004, 04:06 AM
Hi,

First thanks for this forum witch is my last chance to find out what is going on with my program.

In fact, I have the necessity to do OpenGL calls in two different thread. So I create the second thread, in witch I manage to destroy Display Lists created in the main thread, but when I try a GLgenLists in the second thread, it always returns 0. I tried the make current function of gtkgl but nothing is better.

Will someone help me ?
Thx in advance

endash
10-27-2004, 09:00 AM
I believe you can only talk to an OpenGL context with one thread at a time. If you aren't using a mutex, anything could happen.