From d40999ce066b280147c58e12913d4c4abf1277c7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 22 Nov 2025 19:47:52 -0600 Subject: [PATCH] Don't reset Qt's OpenGL state We're using a different EGL context for SDL, so it's unnecessary. --- app/streaming/session.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index e2efaf3e..3742ae25 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -2342,13 +2342,6 @@ DispatchDeferredCleanup: SDL_QuitSubSystem(SDL_INIT_VIDEO); - // Reset this thread's OpenGL state back to what Qt expects -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - QQuickOpenGLUtils::resetOpenGLState(); -#else - m_QtWindow->resetOpenGLState(); -#endif - // Cleanup can take a while, so dispatch it to a worker thread. // When it is complete, it will release our s_ActiveSessionSemaphore // reference.