From 69bd7cdfb824c9189ef89e112222141c28b163f6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 27 Aug 2012 00:46:25 +0300 Subject: [PATCH] Pull glDrawRangeElements from version_1_2.h --- source/batch.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/batch.cpp b/source/batch.cpp index cdbba871..375c52e9 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -5,6 +5,7 @@ #include "extension.h" #include "nv_primitive_restart.h" #include "vertexarray.h" +#include "version_1_2.h" using namespace std; @@ -24,7 +25,11 @@ Batch::Batch(PrimitiveType t): 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() { -- 2.43.0