]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarray.cpp
Make a const pointer to a Bufferable's buffer publicly accessible
[libs/gl.git] / source / vertexarray.cpp
index 0ebd4f0fef4e9855a650b53280ddfbac1ffbcd99..a4dffbb7bae4876af7c9535a1f965e8431b64f7b 100644 (file)
@@ -135,7 +135,7 @@ void VertexArray::apply(bool use_legacy) const
        if(!set_current(this) && !dirty)
                return;
 
-       Buffer *vbuf = get_buffer();
+       const Buffer *vbuf = get_buffer();
        Bind _bind_vbuf(vbuf, ARRAY_BUFFER);
        if(vbuf && dirty)
                update_buffer();