From b05ca4e4bf1fe486377ea127a3f70278301c8af2 Mon Sep 17 00:00:00 2001 From: Emanuele <118837721+imellag@users.noreply.github.com> Date: Mon, 26 Oct 2026 12:07:59 +0100 Subject: [PATCH] fix(libSceVideoOut): read the window size after a flip on the main thread on macOS --- core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp b/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp index 850de295b4..5dec8f0393 100644 --- a/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp +++ b/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp @@ -740,7 +740,7 @@ void VideoOutDriver::presentLoop(std::stop_token token, std::promise& star processFlip(*current); int windowWidth = 0; int windowHeight = 0; - if (window.Handle() != nullptr) SDL_GetWindowSize(window.Handle(), &windowWidth, &windowHeight); + if (window.Handle() != nullptr) OnMainThread([&] { SDL_GetWindowSize(window.Handle(), &windowWidth, &windowHeight); }); if (windowWidth > 0 && windowHeight > 0) { const auto presented = AgcDriver::ComputeContainSize_nid_postfix(current->width, current->height, static_cast(windowWidth), static_cast(windowHeight), true); mouseInput->SetPresentation(current->width, current->height, presented.width, presented.height);