Cannot cache vertices when morph is enabled.

This commit is contained in:
Henrik Rydgard 2013-01-20 22:48:29 +01:00
parent e15b580df6
commit 3b8ea62b05

View File

@ -844,7 +844,8 @@ void TransformDrawEngine::Flush() {
GLuint vbo = 0, ebo = 0;
int vertexCount = 0;
bool useElements = true;
if (g_Config.bVertexCache) {
// Cannot cache vertex data with morph enabled.
if (g_Config.bVertexCache && !(lastVType_ & GE_VTYPE_MORPHCOUNT_MASK)) {
u32 id = ComputeFastDCID();
auto iter = vai_.find(id);
VertexArrayInfo *vai;