From 1d1fa0577b25f95a91fbfef6c5520d4bccd0f73e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 25 Jun 2024 22:28:23 -0500 Subject: [PATCH] Don't flush window events after the KMSDRM modeset operation We will flush the initial window shown event that we require to start decoding. --- app/streaming/session.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 3cc04bdd..970e0e42 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1813,13 +1813,6 @@ void Session::execInternal() SDL_RenderClear(renderer); SDL_RenderPresent(renderer); SDL_DestroyRenderer(renderer); - - // SDL_CreateRenderer() can end up having to recreate our window (SDL_RecreateWindow()) - // to ensure it's compatible with the renderer's OpenGL context. If that happens, we - // can get spurious SDL_WINDOWEVENT events that will cause us to (again) recreate our - // renderer. This can lead to an infinite to renderer recreation, so discard all - // SDL_WINDOWEVENT events after SDL_CreateRenderer(). - flushWindowEvents(); } else { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,