]> git.tdb.fi Git - libs/gl.git/commitdiff
Use proper cast
authorMikko Rasa <tdb@tdb.fi>
Tue, 7 Feb 2012 17:44:41 +0000 (17:44 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 7 Feb 2012 17:44:41 +0000 (17:44 +0000)
source/batch.cpp

index b4b88176559a744ffa602fed13951ebd8a65b669..cdbba871ced2882160cae191683f5941350ee7b0 100644 (file)
@@ -244,7 +244,7 @@ void Batch::draw() const
                BufferAlias<ELEMENT_ARRAY_BUFFER> 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<void *>(ibuf_offset));
        }
        else
                glDrawRangeElements(prim_type, min_index, max_index, size(), data_type, &data[0]);