X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexarray.cpp;h=7716c5b2e4c68f30fcee9ada52213532dec53e29;hb=ac11296dca7c7a594ff1b20bead87e1e161b4bef;hp=25ec3f5972d9ff60f04af3aea4c6caafbb1f1dc1;hpb=f1cbab0dca940fd5db6d459f9e91661efe3d6052;p=libs%2Fgl.git diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index 25ec3f59..7716c5b2 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -1,12 +1,6 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "arb_vertex_program.h" #include "buffer.h" +#include "error.h" #include "extension.h" #include "gl.h" #include "version_1_2.h" @@ -82,7 +76,7 @@ void VertexArray::reset(const VertexFormat &f) void VertexArray::apply() const { if(format.empty()) - throw InvalidState("Trying to apply a vertex array with no data"); + throw invalid_operation("VertexArray::apply"); if(vbuf) {