[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>
Thu, 19 Jun 2025 22:08:21 +0000 (00:08 +0200)
commit731fc40b5526c610c63f81204e539cbfbc451468
tree8b909da8fdc0ab161d2b03ef1f2cb32911fd4c2a
parent1f8ae71924b34b33aa208f8786fd5311ce5901fc
[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