What I can do? help me, please!!!!!
Make *all* your glut calls only from one (main! only!) thread. All other
threads must be compute-only worker threads. GLUT wasn't designed to be
thread-safe, it interacts with the window system so you must not in any
other thread, and multithreading OpenGL drawing is virtually never worth it.
in a word, don't do it.
unfortunate, I must use it!
> unfortunate, I must use it!
And GLUT is not thread safe, so you can't do it. Also OpenGL is
not meant to be used multithreaded. With some quirks you can
render to the same OpenGL context from multiple threads, even
simultanously, but within the OpenGL implementation a lot of
synchronization will be done, resulting in lower performance,
than rendering single threaded.
You can however do multithreaded rendering to separate contexts
on recent hardware (thinking of GeForce 8 series), quite well,
but's it's quite a mess to get right.
Anyway, you can't do it with GLUT, you have to use some thread
safe framework for this - or do it all yourself.
Wolfgang Draxinger
--
E-Mail address works, Jabber: hexa...@jabber.org, ICQ: 134682867