X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmesh.cpp;h=0e58aa269a1bbdb7679aa36737f0a79ecdb95663;hb=7d6b7b18221e670810bdd0505995b8f1fa012eb4;hp=9757df5cc9e20f364ff96880f115b1707a1f8f5e;hpb=6afbace895a7bbcf216ab8e48280ea0303ab5892;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index 9757df5c..0e58aa26 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -85,7 +85,7 @@ void Mesh::add_batch(const Batch &b) Batch *prev = (batches.empty() ? 0 : &batches.back()); batches.push_back(b); if(ibuf) - batches.back().use_index_buffer(ibuf, prev); + batches.back().use_buffer(ibuf, prev); } }