fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)

This commit is contained in:
nitsuja
2012-01-01 12:46:02 -08:00
committed by skidau
parent 19b0b02ad7
commit 2be579e8ba
10 changed files with 107 additions and 58 deletions

View File

@ -24,6 +24,8 @@
#include "Fifo.h"
#include "CommandProcessor.h"
#include "PixelEngine.h"
#include "PixelShaderManager.h"
#include "VertexShaderManager.h"
static void DoState(PointerWrap &p)
{
@ -48,12 +50,17 @@ static void DoState(PointerWrap &p)
CommandProcessor::DoState(p);
PixelEngine::DoState(p);
// the old way of replaying current bpmem as writes to push side effects to pixel shader manager doesn't really work.
PixelShaderManager::DoState(p);
VertexShaderManager::DoState(p);
// TODO: search for more data that should be saved and add it here
}
void VideoCommon_DoState(PointerWrap &p)
{
DoState(p);
//TODO: search for more data that should be saved and add it here
}
void VideoCommon_RunLoop(bool enable)