X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=cdbba871ced2882160cae191683f5941350ee7b0;hb=e862bdabd2eb9ad8f692a1db5dd3e11344e3ab23;hp=b4b88176559a744ffa602fed13951ebd8a65b669;hpb=6abd9639c56e263c92d1ccc4f772d7f0fca5ce6a;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]);