diff --git a/libs/openFrameworks/gl/ofVboMesh.cpp b/libs/openFrameworks/gl/ofVboMesh.cpp index 13affc16396..c55083ce480 100644 --- a/libs/openFrameworks/gl/ofVboMesh.cpp +++ b/libs/openFrameworks/gl/ofVboMesh.cpp @@ -12,6 +12,7 @@ ofVboMesh::ofVboMesh(){ vboNumColors = 0; vboNumTexCoords = 0; vboNumNormals = 0; + updateSet = false; } ofVboMesh::ofVboMesh(const ofMesh & mom) @@ -47,34 +48,42 @@ void ofVboMesh::setUsage(int _usage){ void ofVboMesh::enableColors(){ vbo.enableColors(); + ofMesh::enableColors(); } void ofVboMesh::enableTextures(){ vbo.enableTexCoords(); + ofMesh::enableTextures(); } void ofVboMesh::enableNormals(){ vbo.enableNormals(); + ofMesh::enableNormals(); } void ofVboMesh::enableIndices(){ vbo.enableIndices(); + ofMesh::enableIndices(); } void ofVboMesh::disableColors(){ vbo.disableColors(); + ofMesh::disableColors(); } void ofVboMesh::disableTextures(){ vbo.disableTexCoords(); + ofMesh::disableTextures(); } void ofVboMesh::disableNormals(){ vbo.disableNormals(); + ofMesh::disableNormals(); } void ofVboMesh::disableIndices(){ vbo.disableIndices(); + ofMesh::disableIndices(); } bool ofVboMesh::usingColors() const { @@ -156,7 +165,7 @@ void ofVboMesh::updateVbo(){ if(getNumVertices()==0){ vbo.clearVertices(); vboNumVerts = getNumVertices(); - }else if(vboNumVerts