Fix RSX capture playback

This commit is contained in:
kd-11 2022-08-04 16:05:46 +03:00 committed by kd-11
parent 0e1931f178
commit 2445ab8d8e

View file

@ -47,8 +47,11 @@ bool serialize<rsx::rsx_state>(utils::serial& ar, rsx::rsx_state& o)
{ {
ar(o.transform_program); ar(o.transform_program);
// Hack for compatiblity with previous RSX captures // Work around for old RSX captures.
if (rsx::get_current_renderer()->state & cpu_flag::exit || GET_SERIALIZATION_VERSION(global_version)) // RSX capture and savestates both call this method.
// We do not want to grab transform constants if it is not savestate capture.
const bool is_savestate_capture = thread_ctrl::get_current() && thread_ctrl::get_name() == "Emu State Capture Thread";
if (GET_SERIALIZATION_VERSION(global_version) || is_savestate_capture)
{ {
ar(o.transform_constants); ar(o.transform_constants);
} }