X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimmediate.cpp;h=cbcc37b9e7d17490f355ec5ca2c2601cce27a811;hb=3cdcc7f689b3868dd275774b9bd9adb5c436f244;hp=252eed335895e21f3dd5087f03a97f1cfcadac00;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/immediate.cpp b/source/immediate.cpp index 252eed33..cbcc37b9 100644 --- a/source/immediate.cpp +++ b/source/immediate.cpp @@ -1,4 +1,5 @@ #include "batch.h" +#include "error.h" #include "immediate.h" namespace Msp { @@ -14,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(); }