summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-11-17 10:13:14 +0100
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-11-17 14:52:50 +0100
commitb00d4475aafa31fef808c4b5839383b827273ddd (patch)
treeafeab67bc3a24b61f6ebd7f5ca15339bce5e752c /src/corelib/tools
parent2fb3941198f43b653cb53f53b59830c9b9856835 (diff)
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>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions