threadedqopenglwidget sample causes an assert on resize
Unsolved
General and Desktop
-
Hi,
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.
-
Do you mean Windows 10 ?
-
Did you check that one of the not threaded application work fine ?
-
Hi, I found one answer here: https://stackoverflow.com/a/68654054/10694281.