[PATCH] QOpenGlContext: Always unset current context in doneCurrent()
authorDavid Redondo <qt@david-redondo.de>
Wed, 15 Jan 2025 12:52:13 +0000 (13:52 +0100)
committerPatrick Franz <deltaone@debian.org>
Sat, 1 Mar 2025 11:21:39 +0000 (12:21 +0100)
commit5a9e25bd9c6d3bd0ce12d30b4cb316c2748bd63c
treeeb94d8608621f9a654274b6b97ab80bfb4aa32ba
parent27ef38d4630e691eee6f8aa7451a460d29e271ae
[PATCH] QOpenGlContext: Always unset current context in doneCurrent()

Otherwise when no other context is made current until thread exit, the
QGuiGLThreadContext destructor will try to call doneCurrent() on an
already deleted context.

Change-Id: If55dd69a72b8ab4012780a449f6a02729dd0ed43
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
(cherry picked from commit cd1686e55f706048286cbc962bbe02032c2396cd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 10c195b86432eaa430c6991c0fcb74c411407cdf)

Gbp-Pq: Name upstream_unset_current_openglcontext.diff
src/gui/kernel/qopenglcontext.cpp
tests/auto/gui/qopengl/tst_qopengl.cpp