OpenGL rendering and threads
Hello,
Do OpenGL calls have to be issued in the main thread (e.g. the same thread as the QGLWidget)?
I know the cull traversal and the render-graph generation can be done in a separate thread. Then the render-graph could be processed in the main thread if needed (e.g. in QGLWidget::paintGL).
Much thanks,
Ben
Re: OpenGL rendering and threads
Qt docs say that QGLContext isn't thread safe, so I'm not sure if you can find a way to safely activate the context in another thread.
Re: OpenGL rendering and threads
I found something very interesting about that : http://apsy.gse.uni-magdeburg.de/mai...edcube&lang=de
The examples provided work great (i tried the qt 4.4 example without any problem).
Unfortunately it's in deutch, but code comments are in english if I remember.