From: Mikko Rasa Date: Tue, 5 Feb 2008 12:16:25 +0000 (+0000) Subject: Add a missing negation X-Git-Tag: 0.9~14 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c2c33868bacd86f124cc61e35cd6690ee8181ca7;p=libs%2Fgl.git Add a missing negation --- diff --git a/source/primitivebuilder.cpp b/source/primitivebuilder.cpp index ca8f4f3c..e461cf21 100644 --- a/source/primitivebuilder.cpp +++ b/source/primitivebuilder.cpp @@ -29,7 +29,7 @@ void PrimitiveBuilder::begin(PrimitiveType t) void PrimitiveBuilder::end() { - if(in_batch) + if(!in_batch) throw InvalidState("end() called without begin()"); builder=0;