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

@ -465,3 +465,16 @@ void PixelShaderManager::SetMaterialColorChanged(int index)
{
nMaterialsChanged |= (1 << index);
}
void PixelShaderManager::DoState(PointerWrap &p)
{
p.Do(lastRGBAfull);
p.Do(lastAlpha);
p.Do(lastTexDims);
p.Do(lastZBias);
if (p.GetMode() == PointerWrap::MODE_READ)
{
Dirty();
}
}