Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.1
-
None
-
7414c2c404cc241b1dbfa2d15aee2917a3b0cfb2
Description
When using QOpenGLWindow, if one has a QOpenGL wrapper class as a child object of a QOpenGLWindow subclass, then the child object gets destroyed without a context active.
That's merely because ~QObject destroys children first, then the private object (holding the context) is destroyed; and nothing makes the context current in the between. This leads to crashes.
Attachments
For Gerrit Dashboard: QTBUG-44094 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
104495,3 | QOpenGLWidget/QOpenGLWindow: add a destructor which calls makeCurrent | dev | qt/qtbase | Status: MERGED | +2 | 0 |
104700,1 | Only call makeCurrent in ~QOpenGLWidget() if it is initialized. | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
104702,2 | Avoid warning in makeCurrent | dev | qt/qtbase | Status: MERGED | +2 | 0 |