Skip to content

Commit

Permalink
Include tangent/binormal cache in savestates
Browse files Browse the repository at this point in the history
This theoretically matters for RS2/RS3, although in practice these games reconfigure it each frame so it shouldn't matter for savestates.
  • Loading branch information
Pokechu22 committed Oct 7, 2022
1 parent 973e58b commit 97d7ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/State.cpp
Expand Up @@ -94,7 +94,7 @@ static size_t s_state_writes_in_queue;
static std::condition_variable s_state_write_queue_is_empty;

// Don't forget to increase this after doing changes on the savestate system
constexpr u32 STATE_VERSION = 150; // Last changed in PR 11124
constexpr u32 STATE_VERSION = 151; // Last changed in PR 11131

// Maps savestate versions to Dolphin versions.
// Versions after 42 don't need to be added to this list,
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/VideoCommon/VertexManagerBase.cpp
Expand Up @@ -562,6 +562,8 @@ void VertexManagerBase::DoState(PointerWrap& p)
}

p.Do(m_zslope);
p.Do(VertexLoaderManager::tangent_cache);
p.Do(VertexLoaderManager::binormal_cache);
}

void VertexManagerBase::CalculateZSlope(NativeVertexFormat* format)
Expand Down

0 comments on commit 97d7ef3

Please sign in to comment.