]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarray.cpp
Lots of comment updates
[libs/gl.git] / source / vertexarray.cpp
index 25ec3f5972d9ff60f04af3aea4c6caafbb1f1dc1..7716c5b2e4c68f30fcee9ada52213532dec53e29 100644 (file)
@@ -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)
        {