summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2019-07-03 11:53:07 +0200
committerJüri Valdmann <juri.valdmann@qt.io>2019-07-04 12:04:29 +0200
commit16a6b2dc39f0022cddbc9be48a0ae8564f7a53a8 (patch)
tree48b2b520963068cb81543fcb10513c040038dfd3
parent1f02df146c30adab0a9dffa0587afde1aa6a48b9 (diff)
Unset global share context pointer on deletion
Fixes: QTBUG-76828 Change-Id: I43eae3c04a23abe118f51c69742772ddb38646f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/core/api/qtwebenginecoreglobal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/api/qtwebenginecoreglobal.cpp b/src/core/api/qtwebenginecoreglobal.cpp
index a415ade92..5a634641b 100644
--- a/src/core/api/qtwebenginecoreglobal.cpp
+++ b/src/core/api/qtwebenginecoreglobal.cpp
@@ -79,6 +79,8 @@ static QOpenGLContext *shareContext;
static void deleteShareContext()
{
+ if (qt_gl_global_share_context() == shareContext)
+ qt_gl_set_global_share_context(nullptr);
delete shareContext;
shareContext = 0;
}