X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.cpp;h=fbb1e159ee564df8b2d7816e459adda6312cfc20;hb=2be605933f62521bb22780256386a14b371c8b17;hp=395057cd90ff4bf61e95a7be7c833fefaa20515f;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/buffer.cpp b/source/buffer.cpp index 395057cd..fbb1e159 100644 --- a/source/buffer.cpp +++ b/source/buffer.cpp @@ -1,7 +1,10 @@ +#include #include "arb_vertex_buffer_object.h" #include "extension.h" #include "buffer.h" +using namespace std; + namespace Msp { namespace GL { @@ -70,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"); } }