X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.cpp;h=a502190f82058c5b67aa4b53dada321bbec95cbf;hb=619aae12e01f25e79626a94c973927e5599e99a5;hp=84c72716d0e5da16cebb42fcd8e191c093ae1bd3;hpb=6afbace895a7bbcf216ab8e48280ea0303ab5892;p=libs%2Fgl.git diff --git a/source/buffer.cpp b/source/buffer.cpp index 84c72716..a502190f 100644 --- a/source/buffer.cpp +++ b/source/buffer.cpp @@ -1,7 +1,7 @@ #include -#include "arb_pixel_buffer_object.h" -#include "arb_uniform_buffer_object.h" -#include "arb_vertex_buffer_object.h" +#include +#include +#include #include "buffer.h" #include "misc.h" @@ -151,13 +151,13 @@ const BufferRange *&BufferRange::binding(BufferType type, unsigned index) if(type==UNIFORM_BUFFER) { if(index>=get_n_uniform_buffer_bindings()) - throw out_of_range("Buffer::binding"); + throw out_of_range("BufferRange::binding"); if(bound_uniform.size()<=index) bound_uniform.resize(index+1); return bound_uniform[index]; } else - throw invalid_argument("Buffer::binding"); + throw invalid_argument("BufferRange::binding"); } bool BufferRange::set_current(BufferType type, unsigned index, const BufferRange *buf)