Merge pull request #12279 from Dentomologist/opengl_single_core_fix_start_movie_recording_crash

Movie: Fix crash when starting input recording on OpenGL single core
This commit is contained in:
Mai 2023-11-27 03:19:54 +01:00 committed by GitHub
commit eba2b9ab9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -545,7 +545,7 @@ bool BeginRecordingInput(const ControllerTypeArray& controllers,
(controllers == ControllerTypeArray{} && wiimotes == WiimoteEnabledArray{}))
return false;
Core::RunAsCPUThread([controllers, wiimotes] {
const auto start_recording = [controllers, wiimotes] {
s_controllers = controllers;
s_wiimotes = wiimotes;
s_currentFrame = s_totalFrames = 0;
@ -615,7 +615,8 @@ bool BeginRecordingInput(const ControllerTypeArray& controllers,
if (Core::IsRunning())
Core::UpdateWantDeterminism();
});
};
Core::RunOnCPUThread(start_recording, true);
Core::DisplayMessage("Starting movie recording", 2000);
return true;