X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fbatch.cpp;h=37e4801ec82a6356a595a4dea62de926bf790d3e;hb=b59c47a7ed2ed3f69a3349a2d76ef02891f0c685;hp=89b8f48f4d44920d4b63a3829a44f81f9c2f44e8;hpb=38ef46bd5cf01ad6d33246b52839ffde2faa3367;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index 89b8f48f..37e4801e 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -242,7 +242,7 @@ void Batch::draw() const else if(restart_index && restart_index<=max_index) set_restart_index(0); - Buffer *ibuf = get_buffer(); + const Buffer *ibuf = get_buffer(); const void *data_ptr; BindRestore _bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER); if(ibuf)