Hello,
I am using QGLWidget to display an opengl scene in the main thread.
I would like to load the texture from a worker QThread.
My problem is that I cannot find a way to share the opengl context between the threads.
I tried to:
- create a QGLWidget in the worker thread with shareWidget= main thread QGLWidget. Crash
- create a QGLContext with create(glWidget->context()); . No crash but opengl return errors and textures are not updated.
Any advice?
Bookmarks