savestate vertexmanager (base) since it affects VertexLoader::RunVertices which affects g_pVideoData

This commit is contained in:
nitsuja
2012-01-04 00:42:22 -08:00
committed by skidau
parent ae242e5675
commit 99b202fd2e
5 changed files with 39 additions and 8 deletions

View File

@ -308,3 +308,20 @@ shader_fail:
ResetBuffer();
}
#endif
void VertexManager::DoState(PointerWrap& p)
{
g_vertex_manager->vDoState(p);
}
void VertexManager::DoStateShared(PointerWrap& p)
{
p.DoPointer(s_pCurBufferPointer, LocalVBuffer);
p.DoArray(LocalVBuffer, MAXVBUFFERSIZE);
p.DoArray(TIBuffer, MAXIBUFFERSIZE);
p.DoArray(LIBuffer, MAXIBUFFERSIZE);
p.DoArray(PIBuffer, MAXIBUFFERSIZE);
if (p.GetMode() == PointerWrap::MODE_READ)
Flushed = false;
}