threadedqopenglwidget sample causes an assert on resize
I'm trying to do an OpenGL app with rendering in a thread. So I look at QT sample "threadedqopenglwidget".
Everything is fine, until I resize the window. Then, I have an assert with "Cannot make QOpenGLContext current in a different thread".
Any idea of what causes that ?
Here is how to reproduce :
- build the sample "threadedqopenglwidget"
- resize the top level window (the one with only one QT logo). When I say resize, resize like crazy, lol
- The assert should happend
Hi and welcome to devnet,
You should add what version of Qt/OS/Graphic card you are currently using.
QT5.5.1 on Windows X
Graphic card is Intel HD graphics4600
Do you mean Windows 10 ?
yep Windows 10 Pro 64 bits to be precise
Did you check that one of the not threaded application work fine ?