X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=cdbba871ced2882160cae191683f5941350ee7b0;hb=904de4f7fd994886adbd3a6c03bc1b7c14ebc562;hp=b4b88176559a744ffa602fed13951ebd8a65b669;hpb=2e7f19b895424c3a77940e648639f8df2b395d0f;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index b4b88176..cdbba871 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -244,7 +244,7 @@ void Batch::draw() const BufferAlias alias(*ibuf); Bind bind_ibuf(alias, true); - glDrawRangeElements(prim_type, min_index, max_index, size(), data_type, (void *)ibuf_offset); + glDrawRangeElements(prim_type, min_index, max_index, size(), data_type, reinterpret_cast(ibuf_offset)); } else glDrawRangeElements(prim_type, min_index, max_index, size(), data_type, &data[0]);