diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2020-12-09 19:18:42 +0100 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-12-09 19:18:42 +0100 |
commit | 51b2671aa9204cc5c49092219b7b5be9fbc25e3b (patch) | |
tree | c71617027fb7d7428244684538c9c0aa83cca584 /src/GPU3D.cpp | |
parent | ee75443d50d57f7f0fb47f27b3016d1672c9e48a (diff) |
add cur vertex and light information to savestate
Diffstat (limited to 'src/GPU3D.cpp')
-rw-r--r-- | src/GPU3D.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 4e6ac42..fd8d320 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -608,6 +608,22 @@ void DoSavestate(Savestate* file) // might cause a blank frame but atleast it won't shit itself RenderNumPolygons = 0; } + + file->VarArray(CurVertex, sizeof(s16)*3); + file->VarArray(VertexColor, sizeof(u8)*3); + file->VarArray(TexCoords, sizeof(s16)*2); + file->VarArray(RawTexCoords, sizeof(s16)*2); + file->VarArray(Normal, sizeof(s16)*3); + + file->VarArray(LightDirection, sizeof(s16)*4*3); + file->VarArray(LightColor, sizeof(u8)*4*3); + file->VarArray(MatDiffuse, sizeof(u8)*3); + file->VarArray(MatAmbient, sizeof(u8)*3); + file->VarArray(MatSpecular, sizeof(u8)*3); + file->VarArray(MatEmission, sizeof(u8)*3); + + file->Bool32(&UseShininessTable); + file->VarArray(ShininessTable, 128*sizeof(u8)); } |