]> git.tdb.fi Git - libs/gl.git/blobdiff - source/immediate.cpp
Improve formatting of an empty loop body
[libs/gl.git] / source / immediate.cpp
index 15d3a634a13248063efd29c2f5889fff7110c120..cf1be08ed7204209d0d572b851ce76b7c58469ff 100644 (file)
@@ -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 {
@@ -15,13 +9,13 @@ Immediate::Immediate(VertexFormat f):
        PrimitiveBuilder(array),
        array(f)
 {
-       array.use_vertex_buffer(0);
+       array.use_buffer(0);
 }
 
 void Immediate::reset()
 {
        if(in_batch)
-               throw InvalidState("Can't reset Immediate between begin() and end()");
+               throw invalid_operation("Immediate::reset");
 
        array.clear();
 }