Push empty InstanceData independently of gl level

This commit is contained in:
Vincent Lejeune 2014-08-25 01:09:52 +02:00
parent aa6e3570df
commit b401d1e082

View File

@ -57,10 +57,10 @@ void STKInstancedSceneNode::createGLMeshes()
mesh.vaoBaseVertex = p.first;
mesh.vaoOffset = p.second;
mesh.VAOType = mb->getVertexType();
instanceData.push_back(std::vector<InstanceData>());
}
else
fillLocalBuffer(mesh, mb);
instanceData.push_back(std::vector<InstanceData>());
}
isMaterialInitialized = false;
}