diff options
| author | nitsuja <nitsuja-@hotmail.com> | 2012-01-01 12:46:02 -0800 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2012-05-26 13:18:07 +1000 |
| commit | 2be579e8bad372e7a7433a7d6300939ecef4c654 (patch) | |
| tree | af50bcb1d521ea3f9d3c1d18a1d049386188ae7f /Source/Core/VideoCommon/Src/PixelShaderManager.cpp | |
| parent | 19b0b02ad75d9400cd69bfee3729f91662c2064b (diff) | |
fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp index 2521f80500..1533f9348e 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp @@ -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(); + } +} |
