]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexsetup.cpp
Remove bind mechanics from Mesh and VertexArray
[libs/gl.git] / source / vertexsetup.cpp
index 53f825697b34b16444e783cfb32262361d10fc4f..2a3b2f1a7d920aa5a5a1200dd4df646ca1d195c6 100644 (file)
@@ -130,6 +130,9 @@ void VertexSetup::bind() const
 
        if(set_current(this))
        {
+               vertex_array->refresh();
+               if(inst_array)
+                       inst_array->refresh();
                glBindVertexArray(id);
                if(dirty)
                {