X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=859a6ad5468f0783240d094075063d276764ac0f;hb=f9d27a44f11dcb2980ea7c65d410e9002098487f;hp=3cb0a6ce8dacd443210e47f57b45291611235420;hpb=b9844472a5ec8fad571809409f6ed4203531d825;p=libs%2Fgl.git 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()