From e862bdabd2eb9ad8f692a1db5dd3e11344e3ab23 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 7 Feb 2012 17:44:41 +0000 Subject: [PATCH] Use proper cast --- source/batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.43.0