Cleanup some minor vertex cache stuff.

This commit is contained in:
Unknown W. Brackets 2014-09-15 07:08:55 -07:00
parent 6d72c2019a
commit 01bdb6e160
5 changed files with 3 additions and 6 deletions

View file

@ -133,7 +133,7 @@ static const CommandTableEntry commandTable[] = {
{GE_CMD_COLORTESTMASK, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTEONCHANGE, &DIRECTX9_GPU::Execute_ColorTestMask},
// These change the vertex shader so need flushing.
{GE_CMD_REVERSENORMAL, FLAG_FLUSHBEFOREONCHANGE}, // TODO: This one is actually processed during vertex decoding which is wrong.
{GE_CMD_REVERSENORMAL, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTINGENABLE, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTENABLE0, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTENABLE1, FLAG_FLUSHBEFOREONCHANGE},

View file

@ -63,7 +63,6 @@ public:
status = VAI_NEW;
vbo = 0;
ebo = 0;
numDCs = 0;
prim = GE_PRIM_INVALID;
numDraws = 0;
numFrames = 0;
@ -95,7 +94,6 @@ public:
s8 prim;
// ID information
u8 numDCs;
int numDraws;
int numFrames;
int lastFrame; // So that we can forget.

View file

@ -129,7 +129,7 @@ static const CommandTableEntry commandTable[] = {
{GE_CMD_COLORTESTMASK, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTEONCHANGE, &GLES_GPU::Execute_ColorTestMask},
// These change the vertex shader so need flushing.
{GE_CMD_REVERSENORMAL, FLAG_FLUSHBEFOREONCHANGE}, // TODO: This one is actually processed during vertex decoding which is wrong.
{GE_CMD_REVERSENORMAL, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTINGENABLE, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTENABLE0, FLAG_FLUSHBEFOREONCHANGE},
{GE_CMD_LIGHTENABLE1, FLAG_FLUSHBEFOREONCHANGE},

View file

@ -129,6 +129,7 @@ TransformDrawEngine::TransformDrawEngine()
numDrawCalls(0),
vertexCountInDrawCalls(0),
decodeCounter_(0),
dcid_(0),
uvScale(0),
fboTexBound_(false) {
decimationCounter_ = VERTEXCACHE_DECIMATION_INTERVAL;

View file

@ -59,7 +59,6 @@ public:
status = VAI_NEW;
vbo = 0;
ebo = 0;
numDCs = 0;
prim = GE_PRIM_INVALID;
numDraws = 0;
numFrames = 0;
@ -91,7 +90,6 @@ public:
s8 prim;
// ID information
u8 numDCs;
int numDraws;
int numFrames;
int lastFrame; // So that we can forget.