mesa: remove unused driver hook BindBuffer
authorMarek Olšák <marek.olsak@amd.com>
Mon, 27 Jan 2014 11:57:28 +0000 (12:57 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 25 Feb 2014 15:04:21 +0000 (16:04 +0100)
Reviewed-by: Fredrik Höglund <fredrik@kde.org>
src/mesa/main/bufferobj.c
src/mesa/main/dd.h

index d22e2c47d81d5a8cfd1a17611223baf2a90f2481..491b6501ed5c65bafcc69428b4b9f28af4219214 100644 (file)
@@ -954,10 +954,6 @@ bind_buffer_object(struct gl_context *ctx, GLenum target, GLuint buffer)
    
    /* bind new buffer */
    _mesa_reference_buffer_object(ctx, bindTarget, newBufObj);
-
-   /* Pass BindBuffer call to device driver */
-   if (ctx->Driver.BindBuffer)
-      ctx->Driver.BindBuffer( ctx, target, newBufObj );
 }
 
 
@@ -1022,7 +1018,6 @@ _mesa_init_buffer_object_functions(struct dd_function_table *driver)
    /* GL_ARB_vertex/pixel_buffer_object */
    driver->NewBufferObject = _mesa_new_buffer_object;
    driver->DeleteBuffer = _mesa_delete_buffer_object;
-   driver->BindBuffer = NULL;
    driver->BufferData = _mesa_buffer_data;
    driver->BufferSubData = _mesa_buffer_subdata;
    driver->GetBufferSubData = _mesa_buffer_get_subdata;
index ccd44948860bab9ff2efb8d72e02d684265c233b..b444b4cf504dfcf4d243ee8090509c66842c50a2 100644 (file)
@@ -571,9 +571,6 @@ struct dd_function_table {
     * \name Vertex/pixel buffer object functions
     */
    /*@{*/
-   void (*BindBuffer)( struct gl_context *ctx, GLenum target,
-                      struct gl_buffer_object *obj );
-
    struct gl_buffer_object * (*NewBufferObject)(struct gl_context *ctx,
                                                 GLuint buffer, GLenum target);