X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=741d5a49413f5f2f0538e710ffe0148aa497de25;hb=eb6a546dcffc1b67f0a23d8b075fbdc86a2872a0;hp=3d7dfc720ad901d40832e77510d3159339910e29;hpb=1ef3f6df6d85627190e311b4b09f56a4983ec797;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index 3d7dfc72..741d5a49 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -60,12 +60,7 @@ Batch::Batch(PrimitiveType t): min_index(0), max_index(0), restart(false) -{ - /* Make sure we have glEnable/DisableClientState to go with - NV_primitive_restart */ - if(!MSP_primitive_restart && NV_primitive_restart) - (bool)MSP_legacy_features; -} +{ } Batch::~Batch() { @@ -138,7 +133,11 @@ void Batch::append(const Batch &other) if(prim_type==LINE_STRIP || prim_type==LINE_LOOP || prim_type==TRIANGLE_FAN) { if(!MSP_primitive_restart) + { static Require _req(NV_primitive_restart); + // Make sure we have glEnable/DisableClientState as well + static Require _req2(MSP_legacy_features); + } } if(other.data.empty())