From fd0fc5a80895ea33f4a5e72d7eefbc8c9e3d7d6b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Nov 2026 22:20:26 -0600 Subject: [PATCH] Ensure the decoder always resets if we've manually destroyed it Fixes #2103 --- app/streaming/session.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index a0991b74..1dc8fefa 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1542,6 +1542,12 @@ void Session::toggleFullscreen() delete m_VideoDecoder; m_VideoDecoder = nullptr; SDL_UnlockMutex(m_DecoderLock); + + // Fake that the renderer died to ensure it's re-created even if the window + // size doesn't change when entering or leaving full-screen mode. + SDL_Event event; + event.type = SDL_RENDER_DEVICE_RESET; + SDL_PushEvent(&event); #endif // Actually enter/leave fullscreen