X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimmediate.cpp;h=cbcc37b9e7d17490f355ec5ca2c2601cce27a811;hb=8eb9a8d90e5597154dab666481037b306b7bbca2;hp=15d3a634a13248063efd29c2f5889fff7110c120;hpb=c48cb5362edb16c33ed5f6862a908bb9a754c85a;p=libs%2Fgl.git diff --git a/source/immediate.cpp b/source/immediate.cpp index 15d3a634..cbcc37b9 100644 --- a/source/immediate.cpp +++ b/source/immediate.cpp @@ -1,11 +1,5 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "batch.h" +#include "error.h" #include "immediate.h" namespace Msp { @@ -21,7 +15,7 @@ Immediate::Immediate(VertexFormat f): void Immediate::reset() { if(in_batch) - throw InvalidState("Can't reset Immediate between begin() and end()"); + throw invalid_operation("Immediate::reset"); array.clear(); }