mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
Fix RSX capture playback
This commit is contained in:
parent
0e1931f178
commit
2445ab8d8e
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue