]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.cpp
Make a const pointer to a Bufferable's buffer publicly accessible
[libs/gl.git] / source / batch.cpp
index 89b8f48f4d44920d4b63a3829a44f81f9c2f44e8..37e4801ec82a6356a595a4dea62de926bf790d3e 100644 (file)
@@ -242,7 +242,7 @@ void Batch::draw() const
        else if(restart_index && restart_index<=max_index)
                set_restart_index(0);
 
-       Buffer *ibuf = get_buffer();
+       const Buffer *ibuf = get_buffer();
        const void *data_ptr;
        BindRestore _bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER);
        if(ibuf)