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