#include "extension.h"
#include "nv_primitive_restart.h"
#include "vertexarray.h"
+#include "version_1_2.h"
using namespace std;
next_in_ibuf(0),
prev_in_ibuf(0),
dirty(false)
-{ }
+{
+ /* XXX Should probably provide a fallback to glDrawElements since this class
+ is pretty much required to render anything. */
+ static RequireVersion _ver(1, 2);
+}
Batch::~Batch()
{
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]);