X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmesh.cpp;h=c9819ae91c0e60dcec38f18febe5ffeb1747f94f;hb=02feac06937ec4e8e122a833b4903ccf0bd6d030;hp=26d660446b6c8c264c4fba19781069343282bdb6;hpb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index 26d66044..c9819ae9 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -88,8 +88,7 @@ void Mesh::refresh() const if(dirty&2) { glBindVertexArray(vao_id); - BufferAlias 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);