mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-12-01 10:15:22 +00:00
Ensure the decoder always resets if we've manually destroyed it
Fixes #2103
This commit is contained in:
1 parent
2599d23ee0
commit
fd0fc5a808
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user