X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbuffer.cpp;h=fbb1e159ee564df8b2d7816e459adda6312cfc20;hb=2be605933f62521bb22780256386a14b371c8b17;hp=51f4873f76274d2f37305ba8bbc3045eb00406a6;hpb=85c82f93f4874bcf0b04332c9abb62cd2a5b181b;p=libs%2Fgl.git diff --git a/source/buffer.cpp b/source/buffer.cpp index 51f4873f..fbb1e159 100644 --- a/source/buffer.cpp +++ b/source/buffer.cpp @@ -1,14 +1,10 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - +#include #include "arb_vertex_buffer_object.h" #include "extension.h" #include "buffer.h" +using namespace std; + namespace Msp { namespace GL { @@ -77,7 +73,7 @@ const Buffer *&Buffer::binding(BufferType type) case ELEMENT_ARRAY_BUFFER: return bound[1]; case PIXEL_PACK_BUFFER: return bound[2]; case PIXEL_UNPACK_BUFFER: return bound[3]; - default: throw InvalidParameterValue("Invalid buffer type"); + default: throw invalid_argument("Buffer::binding"); } }