mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user