X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fbatch.cpp;h=2bc44c9ddfe285c1dac5afa2fb2cd28ef63fba16;hp=68e232ba29de5447fd9050d27894000f2765e86f;hb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;hpb=a482029babea3210840d8c62e9df9ece4342b2b9 diff --git a/source/core/batch.cpp b/source/core/batch.cpp index 68e232ba..2bc44c9d 100644 --- a/source/core/batch.cpp +++ b/source/core/batch.cpp @@ -188,9 +188,7 @@ unsigned Batch::get_index(unsigned i) const void Batch::draw() const { - BindRestore _bind_ibuf(get_buffer(), ELEMENT_ARRAY_BUFFER); const void *data_ptr = setup_draw(); - glDrawElements(prim_type, size(), gl_index_type, data_ptr); } @@ -198,9 +196,7 @@ void Batch::draw_instanced(unsigned count) const { static Require req(ARB_draw_instanced); - BindRestore _bind_ibuf(get_buffer(), ELEMENT_ARRAY_BUFFER); const void *data_ptr = setup_draw(); - glDrawElementsInstanced(prim_type, size(), gl_index_type, data_ptr, count); }