[Mesa-dev] [PATCH 01/13] mesa: remove unused driver hook BindBuffer

Fredrik Höglund fredrik at kde.org
Thu Jan 30 10:21:23 PST 2014


On Thursday 30 January 2014, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> ---
>  src/mesa/main/bufferobj.c | 5 -----
>  src/mesa/main/dd.h        | 3 ---
>  2 files changed, 8 deletions(-)
> 
> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
> index e305038..802c9e3 100644
> --- a/src/mesa/main/bufferobj.c
> +++ b/src/mesa/main/bufferobj.c
> @@ -952,10 +952,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 );
>  }
>  
>  
> @@ -1020,7 +1016,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;
> diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
> index cb6fac4..db55dba 100644
> --- a/src/mesa/main/dd.h
> +++ b/src/mesa/main/dd.h
> @@ -555,9 +555,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 );

Reviewed-by: Fredrik Höglund <fredrik at kde.org>



More information about the mesa-dev mailing list