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:
commit
eba2b9ab9c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue