Fix vai->numFrames never incrementing.

This made it never cache... oops.
This commit is contained in:
Unknown W. Brackets committed 2013-02-11 23:38:29 -08:00
1 parent 2c01b36585
commit 7d2c5c5041
1 file changed
+2 -1
+2 -1
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: