]> git.tdb.fi Git - libs/gl.git/commitdiff
Pull glDrawRangeElements from version_1_2.h
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:46:25 +0000 (00:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:46:25 +0000 (00:46 +0300)
source/batch.cpp

index cdbba871ced2882160cae191683f5941350ee7b0..375c52e9ca25da98131f76924eb457b80bf9f255 100644 (file)
@@ -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()
 {