X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbatch.cpp;h=f2a57bcf2fa2ad4f1ea1f4f6c90a17ab85d8cf3f;hp=385b4697085f6215e075344ac9a980007212e193;hb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;hpb=16f6f15328b3a6eec87b1b5e5822368966d44a38 diff --git a/source/batch.cpp b/source/batch.cpp index 385b4697..f2a57bcf 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -7,7 +7,7 @@ Distributed under the LGPL #include "batch.h" #include "extension.h" -#include "version_1_2.h" +#include "vertexarray.h" using namespace std; @@ -18,9 +18,7 @@ Batch::Batch(PrimitiveType t): type(t), min_index(0), max_index(0) -{ - require_version(1, 2); -} +{ } Batch &Batch::append(uint i) { @@ -45,7 +43,7 @@ void Batch::append(const vector &ind) void Batch::draw() const { - glDrawRangeElements(type, min_index, max_index, indices.size(), GL_UNSIGNED_INT, &indices[0]); + draw_range_elements(type, min_index, max_index, indices.size(), &indices[0]); }