Skip to content

Commit c334784

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 014b8e1 commit c334784

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
@@ -1221,9 +1221,7 @@ void ImGuiManager::SetSoftwareCursor(u32 index, std::string image_path, float im
12211221
// 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.
12221222
if (MTGS::IsOpen())
12231223
{
1224-
MTGS::RunOnGSThread([index]() {
1225-
UpdateSoftwareCursorTexture(index);
1226-
});
1224+
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).
12271225
}
12281226

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

0 commit comments

Comments
 (0)