X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbatch.cpp;h=1469ab110ee61d1ec69c37616f43ed310d3315e5;hb=bea2bcf1aa353b1dd8d1728931ef0508677bd2c6;hp=2be5cc3a69ffacd2472f2575da0b480db37b3989;hpb=a60b558e1c327fd2e2600ad2551dc0ac648761f2;p=libs%2Fgl.git diff --git a/source/core/batch.cpp b/source/core/batch.cpp index 2be5cc3a..1469ab11 100644 --- a/source/core/batch.cpp +++ b/source/core/batch.cpp @@ -48,15 +48,12 @@ void shrink(vector &data) namespace Msp { namespace GL { -unsigned Batch::restart_index = 0; - Batch::Batch(PrimitiveType t): prim_type(t), gl_prim_type(GL::get_gl_primitive_type(prim_type)), index_type(UNSIGNED_SHORT), gl_index_type(get_gl_type(index_type)), - max_index(0), - restart(false) + max_index(0) { } Batch::~Batch() @@ -134,7 +131,6 @@ Batch &Batch::append(const Batch &other) ; else if(MSP_primitive_restart) { - restart = true; if(index_type==UNSIGNED_INT) ::append(data, 0xFFFFFFFF); else