X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.cpp;h=44568697f4f6dfd46aca884b9a6ebb8cffc05db3;hb=e5d7b40938e4ae38c41ae6ed054319f7f3fa600f;hp=d1cb77f143c7a1ede2e5873fc1a21bb6c331d568;hpb=26ff1dd4c645c9b8b5361f5f37c58f071789f026;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index d1cb77f1..44568697 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -153,7 +153,7 @@ void Mesh::draw() const if(!current()) vertices.apply(); - Bind bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER); + BindRestore bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER); Bind bind_winding(winding); for(list::const_iterator i=batches.begin(); i!=batches.end(); ++i) @@ -170,7 +170,6 @@ void Mesh::draw(Renderer &renderer) const } renderer.set_mesh(this); - renderer.set_element_buffer(ibuf); renderer.set_winding_test(winding); for(list::const_iterator i=batches.begin(); i!=batches.end(); ++i)