]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.cpp
Support OpenGL ES on Android
[libs/gl.git] / source / batch.cpp
index 3cb0a6ce8dacd443210e47f57b45291611235420..859a6ad5468f0783240d094075063d276764ac0f 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/gl/extensions/ext_draw_range_elements.h>
+#include <msp/gl/extensions/msp_legacy_features.h>
 #include <msp/gl/extensions/nv_primitive_restart.h>
 #include "batch.h"
 #include "bindable.h"
@@ -59,6 +60,10 @@ Batch::Batch(PrimitiveType t):
        max_index(0),
        restart(false)
 {
+       /* Make sure we have glEnable/DisableClientState to go with
+       NV_primitive_restart */
+       if(NV_primitive_restart)
+               (bool)MSP_legacy_features;
 }
 
 Batch::~Batch()