From: Mikko Rasa Date: Tue, 7 Feb 2012 17:44:41 +0000 (+0000) Subject: Use proper cast X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e862bdabd2eb9ad8f692a1db5dd3e11344e3ab23;p=libs%2Fgl.git Use proper cast --- 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]);