Qt: Reload GL context on main thread after shutting down painter
Vicki Pfau vi@endrift.com
Tue, 14 May 2019 17:30:32 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/DisplayGL.cpp
→
src/platform/qt/DisplayGL.cpp
@@ -99,6 +99,11 @@ CoreController::Interrupter interrupter(m_context);
QMetaObject::invokeMethod(m_painter, "stop", Qt::BlockingQueuedConnection); m_drawThread->exit(); m_drawThread = nullptr; + + m_gl->context()->makeCurrent(); +#if defined(_WIN32) && defined(USE_EPOXY) + epoxy_handle_external_wglMakeCurrent(); +#endif } m_context.reset(); }