X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbatch.cpp;h=859a6ad5468f0783240d094075063d276764ac0f;hp=3cb0a6ce8dacd443210e47f57b45291611235420;hb=9dc2c20e8c7ac91d932b12492591b65786e24b0f;hpb=e0a2e7643f490bee69dfada6b029c8e02e6ede07 diff --git a/source/batch.cpp b/source/batch.cpp index 3cb0a6ce..859a6ad5 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -1,4 +1,5 @@ #include +#include #include #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()