X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.cpp;h=44568697f4f6dfd46aca884b9a6ebb8cffc05db3;hb=e5d7b40938e4ae38c41ae6ed054319f7f3fa600f;hp=301c00f94b331fc6c87087bc9f79a8b558c675a0;hpb=6327ae3d1f8a976f839ce333500c1643f9965fca;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index 301c00f9..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)