X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=37e4801ec82a6356a595a4dea62de926bf790d3e;hb=1c03d9e430782b329c684fbf9c9e10230eec1966;hp=89b8f48f4d44920d4b63a3829a44f81f9c2f44e8;hpb=3ba81ebaaec0c271d68cc12afbea86c394c3403d;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)