summaryrefslogtreecommitdiffstats
path: root/src/shared-main-lib/sharedmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared-main-lib/sharedmain.cpp')
-rw-r--r--src/shared-main-lib/sharedmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared-main-lib/sharedmain.cpp b/src/shared-main-lib/sharedmain.cpp
index 82b5ea72..4eca7aa3 100644
--- a/src/shared-main-lib/sharedmain.cpp
+++ b/src/shared-main-lib/sharedmain.cpp
@@ -246,6 +246,8 @@ void SharedMain::setupOpenGL(const QVariantMap &openGLConfiguration)
// check if we got what we requested on the OpenGL side
checkOpenGLFormat("global shared context", globalContext->format());
+
+ qAddPostRoutine([]() { delete qt_gl_global_share_context(); });
#else
Q_UNUSED(openGLConfiguration)
#endif