diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2016-10-27 09:57:54 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2016-11-08 12:30:24 +0000 |
commit | 8f2eb9b43c23b03918c50fa721a47f3ab99e4ec6 (patch) | |
tree | 936a4628f8ec52253a9fd568c923e360b27972fc /src/widgets | |
parent | ae8d3d69d68e7f3da1b0f524e12496387aff26ec (diff) |
Prevent stale QOpenGLContext fbo pointer
There is logic for clearing the qgl_curent_fbo pointer
in release(), but it is not always called, causing
the pointer to become stale on QOpenGLFramebufferObject
deletion.
As a last resort, clear the qgl_curent_fbo pointer
on the current context if it’s pointing to the object
that is being deleted.
Change-Id: I36cca511da295412332193524219e32607ef8261
Task-number: QTBUG-56639
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions