]> git.tdb.fi Git - libs/gl.git/blobdiff - source/buffer.cpp
Exception fixes
[libs/gl.git] / source / buffer.cpp
index 84c72716d0e5da16cebb42fcd8e191c093ae1bd3..5a0f4762a22b287ed266c2acb15850889acfc67a 100644 (file)
@@ -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)