X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.cpp;h=4b247e8d4f759aa6f68287590207076ff0dbf5cc;hb=a1c39449fccf03ec08787bf51d62bf3b4cb60f69;hp=e901536535cd04716d973594200700cb8829807a;hpb=67f22642d636861f90a016077c9387b7b8397414;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index e9015365..4b247e8d 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -114,27 +114,6 @@ void Mesh::set_winding(const WindingTest *w) winding = w; } -void Mesh::draw() const -{ - const Mesh *cur = current(); - if(cur && cur!=this) - throw invalid_operation("Mesh::draw"); - - if(manager) - { - manager->resource_used(*this); - if(disallow_rendering) - return; - } - - BindRestore bind_vtxs(vtx_setup); - BindRestore bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER); - Bind bind_winding(winding); - - for(vector::const_iterator i=batches.begin(); i!=batches.end(); ++i) - i->draw(); -} - void Mesh::draw(Renderer &renderer) const { if(manager)