X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuffer.cpp;h=fbb1e159ee564df8b2d7816e459adda6312cfc20;hp=395057cd90ff4bf61e95a7be7c833fefaa20515f;hb=2e7f19b895424c3a77940e648639f8df2b395d0f;hpb=97e1aa9b5d2bacd3f1dddf2d1889f2714e36b766 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"); } }