Skip to content

Commit

Permalink
System: Merge system taints with state taints on load
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 10, 2024
1 parent cc567d9 commit 1edcc8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,10 @@ bool System::DoState(StateWrapper& sw, GPUTexture** host_texture, bool update_di
u32 state_taints = s_state.taints;
sw.DoEx(&state_taints, 75, static_cast<u32>(0));
if (state_taints != s_state.taints) [[unlikely]]
{
WarnAboutStateTaints(state_taints);
s_state.taints |= state_taints;
}

sw.Do(&s_state.frame_number);
sw.Do(&s_state.internal_frame_number);
Expand Down

0 comments on commit 1edcc8c

Please sign in to comment.