mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 09:40:01 +00:00
Fix RSX capture playback
This commit is contained in:
parent
0e1931f178
commit
2445ab8d8e
@ -47,8 +47,11 @@ bool serialize<rsx::rsx_state>(utils::serial& ar, rsx::rsx_state& o)
|
||||
{
|
||||
ar(o.transform_program);
|
||||
|
||||
// Hack for compatiblity with previous RSX captures
|
||||
if (rsx::get_current_renderer()->state & cpu_flag::exit || GET_SERIALIZATION_VERSION(global_version))
|
||||
// Work around for old RSX captures.
|
||||
// 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user