Fix vai->numFrames never incrementing.

This made it never cache... oops.
This commit is contained in:
Unknown W. Brackets 2013-02-11 23:29:49 -08:00
parent 2c01b36585
commit 7d2c5c5041

View File

@ -913,7 +913,6 @@ void TransformDrawEngine::Flush() {
vai->decFmt = dec.GetDecVtxFmt();
vai_[id] = vai;
}
vai->lastFrame = gpuStats.numFrames;
switch (vai->status) {
case VertexArrayInfo::VAI_NEW:
@ -1025,6 +1024,8 @@ void TransformDrawEngine::Flush() {
goto rotateVBO;
}
}
vai->lastFrame = gpuStats.numFrames;
} else {
DecodeVerts();
rotateVBO: