savestate vertexmanager (base) since it affects VertexLoader::RunVertices which affects g_pVideoData

This commit is contained in:
nitsuja
2012-01-04 00:42:22 -08:00
committed by skidau
parent ae242e5675
commit 99b202fd2e
5 changed files with 39 additions and 8 deletions

View File

@ -3,6 +3,7 @@
#define _VERTEXMANAGERBASE_H
class NativeVertexFormat;
class PointerWrap;
class VertexManager
{
@ -44,6 +45,8 @@ public:
static u16* GetPointIndexBuffer() { return PIBuffer; }
static u8* GetVertexBuffer() { return LocalVBuffer; }
static void DoState(PointerWrap& p);
protected:
// TODO: make private after Flush() is merged
static void ResetBuffer();
@ -55,6 +58,9 @@ protected:
static bool Flushed;
virtual void vDoState(PointerWrap& p) { DoStateShared(p); }
void DoStateShared(PointerWrap& p);
private:
static void AddIndices(int primitive, int numVertices);
//virtual void Draw(u32 stride, bool alphapass) = 0;