patlj
11-29-2001, 10:01 AM
Hi folks,
I'm having a small problem with threads and GLUT/OpenGL under Linux.
I'm not really sure this is allowed or not, mayby someone can help me.
My program starts and later I decide to make a new thread. This thread
then makes all GLUT calls to create window and assign callbacks.
At various points in that threads execution, the program terminates
with an XIO error 0 (success).
Sometimes it works longer, until I press the mouse button, press a key,
or something, and sometimes just directly during initialization.
Is there anything one must do to activate the current thread as the context
or so. I'm pretty sure my main thread is not doing any X, GLUT or OpenGL
stuff.
Anyone with any clue?
I'm having a small problem with threads and GLUT/OpenGL under Linux.
I'm not really sure this is allowed or not, mayby someone can help me.
My program starts and later I decide to make a new thread. This thread
then makes all GLUT calls to create window and assign callbacks.
At various points in that threads execution, the program terminates
with an XIO error 0 (success).
Sometimes it works longer, until I press the mouse button, press a key,
or something, and sometimes just directly during initialization.
Is there anything one must do to activate the current thread as the context
or so. I'm pretty sure my main thread is not doing any X, GLUT or OpenGL
stuff.
Anyone with any clue?