summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CPMemory.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-10-11 03:42:17 +0200
committerGitHub <noreply@github.com>2022-10-11 03:42:17 +0200
commita056a1366f458754aee61b67f05f61f34c826353 (patch)
tree7a223982642ae558808d0279f6de34eee746369f /Source/Core/VideoCommon/CPMemory.cpp
parent333ede5416217cf88ea210e284cfb4f76d49e0f6 (diff)
parentffed23c059f52dfbe1dbd089d6861c68b8960035 (diff)
Merge pull request #11131 from Pokechu22/cp-state-savestate-mistakes
Include tangent/binormal cache in savestates and simplify saving CP state
Diffstat (limited to 'Source/Core/VideoCommon/CPMemory.cpp')
-rw-r--r--Source/Core/VideoCommon/CPMemory.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/Core/VideoCommon/CPMemory.cpp b/Source/Core/VideoCommon/CPMemory.cpp
index 401c37bc00..c9a5a57b51 100644
--- a/Source/Core/VideoCommon/CPMemory.cpp
+++ b/Source/Core/VideoCommon/CPMemory.cpp
@@ -15,24 +15,6 @@
CPState g_main_cp_state;
CPState g_preprocess_cp_state;
-void DoCPState(PointerWrap& p)
-{
- // We don't save g_preprocess_cp_state separately because the GPU should be
- // synced around state save/load.
- p.DoArray(g_main_cp_state.array_bases);
- p.DoArray(g_main_cp_state.array_strides);
- p.Do(g_main_cp_state.matrix_index_a);
- p.Do(g_main_cp_state.matrix_index_b);
- p.Do(g_main_cp_state.vtx_desc);
- p.DoArray(g_main_cp_state.vtx_attr);
- p.DoMarker("CP Memory");
- if (p.IsReadMode())
- {
- CopyPreprocessCPStateFromMain();
- VertexLoaderManager::g_bases_dirty = true;
- }
-}
-
void CopyPreprocessCPStateFromMain()
{
std::memcpy(&g_preprocess_cp_state, &g_main_cp_state, sizeof(CPState));