]> git.tdb.fi Git - libs/gl.git/commitdiff
Add a missing negation
authorMikko Rasa <tdb@tdb.fi>
Tue, 5 Feb 2008 12:16:25 +0000 (12:16 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 5 Feb 2008 12:16:25 +0000 (12:16 +0000)
source/primitivebuilder.cpp

index ca8f4f3c5343ff973aef0ab1e33173b5d6e4adc4..e461cf211bf77f2fe79b7f25b67a579c2d99fca3 100644 (file)
@@ -29,7 +29,7 @@ void PrimitiveBuilder::begin(PrimitiveType t)
 
 void PrimitiveBuilder::end()
 {
 
 void PrimitiveBuilder::end()
 {
-       if(in_batch)
+       if(!in_batch)
                throw InvalidState("end() called without begin()");
 
        builder=0;
                throw InvalidState("end() called without begin()");
 
        builder=0;