Fix broken resource cleanup in QOpenGLWidget
The context has to be made current. Otherwise we may fail to clean up or, what's worse, we may delete FBOs and textures in some random context. The latter was visible with ANGLE in the qopenglwidget example. When having two QOpenGLWidget instances, the context for the second happened to be the current one when destroying the first. This is now avoided by making sure the correct context is current when deleting the FBOs. Task-number: QTBUG-42696 Change-Id: I8c1eed7c13a869968cc67141e585d02c6bc6f279 Reviewed-by:Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
Showing
Please register or sign in to comment