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

@ -45,13 +45,8 @@ void Fifo_DoState(PointerWrap &p)
{
p.DoArray(videoBuffer, FIFO_SIZE);
p.Do(size);
int pos = (int)(g_pVideoData - videoBuffer); // get offset
p.Do(pos); // read or write offset (depending on the mode)
if (p.GetMode() == PointerWrap::MODE_READ)
{
g_pVideoData = &videoBuffer[pos];
g_bSkipCurrentFrame = false;
}
p.DoPointer(g_pVideoData, videoBuffer);
p.Do(g_bSkipCurrentFrame);
}
void Fifo_PauseAndLock(bool doLock, bool unpauseOnUnlock)