]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.cpp
Add support for multiple binding points in the RAII binders
[libs/gl.git] / source / mesh.cpp
index 26d660446b6c8c264c4fba19781069343282bdb6..c9819ae91c0e60dcec38f18febe5ffeb1747f94f 100644 (file)
@@ -88,8 +88,7 @@ void Mesh::refresh() const
                if(dirty&2)
                {
                        glBindVertexArray(vao_id);
-                       BufferAlias<ARRAY_BUFFER> vbuf_alias(*vbuf);
-                       Bind bind_vbuf(vbuf_alias);
+                       Bind bind_vbuf(vbuf, ARRAY_BUFFER);
 
                        const VertexFormat &fmt = vertices.get_format();
                        unsigned stride = get_stride(fmt)*sizeof(float);