eglfs: Unset shared raster compositing context before deletion

Change-Id: Ib0f615c76ac62f1177e44faaa733e67014f4185d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Tor Arne Vestbø 2022-01-10 16:51:59 +01:00
parent eef865cdc5
commit f3db9abebf
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ void QEglFSWindow::destroy()
#ifndef QT_NO_OPENGL
QOpenGLCompositor::destroy();
if (qt_gl_global_share_context() == m_rasterCompositingContext)
qt_gl_set_global_share_context(nullptr);
delete m_rasterCompositingContext;
#endif
}