mesa: extend _mesa_bind_vertex_buffer to take ownership of the buffer reference
[mesa.git] / src / mesa / vbo / vbo_exec_draw.c
index b3ea9c28fde8f256fa18f6cd70e48eaaeb63cabf..b31c1f901568f2aa1963e820fcd8c518eaa42092 100644 (file)
@@ -110,7 +110,7 @@ vbo_exec_bind_arrays(struct gl_context *ctx)
    /* Bind the buffer object */
    const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat);
    _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset,
-                            stride, false);
+                            stride, false, false);
 
    /* Retrieve the mapping from VBO_ATTRIB to VERT_ATTRIB space
     * Note that the position/generic0 aliasing is done in the VAO.