Skip to content

Commit 4078ad6

Browse files
committed
USB: Fix Big Picture locking out
FSUI waits on itself when switching/launching games in gamelist section but fine in Qt version.
1 parent b9b0298 commit 4078ad6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pcsx2/ImGui/ImGuiManager.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,7 @@ void ImGuiManager::SetSoftwareCursor(u32 index, std::string image_path, float im
11581158
// Also, need to make it run on the GSthread to ensure thread safety or OpenGL renderer will have race conditions due to not creating texture without a valid accompanying context.
11591159
if (MTGS::IsOpen())
11601160
{
1161-
MTGS::RunOnGSThread([index]() {
1162-
UpdateSoftwareCursorTexture(index);
1163-
});
1161+
UpdateSoftwareCursorTexture(index); // Since the entire lambda MTGS::RunOnGSThread([index, image_path = ...]() { ... }); is already executing on the GS thread, the UpdateSoftwareCursorTexture(index) call within it is also on the GS thread. Therefore, it doesn't strictly need its own separate MTGS::RunOnGSThread wrapper around it. If you do call MTGS it will lock up Big Picture Mode (FSUI).
11641162
}
11651163

11661164
// If showing or hiding the cursor for Player 1 (index 0), update the host mouse mode

0 commit comments

Comments
 (0)