mesa: remove Driver.NotifySaveBegin

Nothing overrides it.

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2015-09-27 21:28:22 +02:00
parent 4b8bb2f559
commit 7a54939728
7 changed files with 3 additions and 16 deletions

View file

@ -187,7 +187,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
driver->SaveNeedFlush = 0;
driver->ProgramStringNotify = _tnl_program_string;
driver->NotifySaveBegin = NULL;
driver->LightingSpaceChange = NULL;
/* display list */

View file

@ -792,13 +792,6 @@ struct dd_function_table {
/** Need to call vbo_save_SaveFlushVertices() upon state change? */
GLboolean SaveNeedFlush;
/**
* Give the driver the opportunity to hook in its own vtxfmt for
* compiling optimized display lists. This is called on each valid
* glBegin() during list compilation.
*/
GLboolean (*NotifySaveBegin)( struct gl_context *ctx, GLenum mode );
/**
* Notify driver that the special derived value _NeedEyeCoords has
* changed.

View file

@ -5465,7 +5465,7 @@ save_Begin(GLenum mode)
/* Give the driver an opportunity to hook in an optimized
* display list compiler.
*/
if (ctx->Driver.NotifySaveBegin(ctx, mode))
if (vbo_save_NotifyBegin(ctx, mode))
return;
SAVE_FLUSH_VERTICES(ctx);

View file

@ -90,7 +90,7 @@ vbo_initialize_save_dispatch(const struct gl_context *ctx,
void vbo_exec_FlushVertices(struct gl_context *ctx, GLuint flags);
void vbo_save_SaveFlushVertices(struct gl_context *ctx);
GLboolean vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode);
typedef void (*vbo_draw_func)( struct gl_context *ctx,

View file

@ -39,7 +39,6 @@ static void vbo_save_callback_init( struct gl_context *ctx )
ctx->Driver.EndList = vbo_save_EndList;
ctx->Driver.BeginCallList = vbo_save_BeginCallList;
ctx->Driver.EndCallList = vbo_save_EndCallList;
ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin;
}

View file

@ -179,7 +179,6 @@ void vbo_save_EndList( struct gl_context *ctx );
void vbo_save_NewList( struct gl_context *ctx, GLuint list, GLenum mode );
void vbo_save_EndCallList( struct gl_context *ctx );
void vbo_save_BeginCallList( struct gl_context *ctx, struct gl_display_list *list );
GLboolean vbo_save_NotifyBegin( struct gl_context *ctx, GLenum mode );
void vbo_save_playback_vertex_list( struct gl_context *ctx, void *data );

View file

@ -970,8 +970,7 @@ _save_CallLists(GLsizei n, GLenum type, const GLvoid * v)
/**
* Called via ctx->Driver.NotifySaveBegin() when a glBegin is getting
* compiled into a display list.
* Called when a glBegin is getting compiled into a display list.
* Updating of ctx->Driver.CurrentSavePrimitive is already taken care of.
*/
GLboolean
@ -1604,8 +1603,6 @@ vbo_save_api_init(struct vbo_save_context *save)
vbo_destroy_vertex_list,
vbo_print_vertex_list);
ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin;
_save_vtxfmt_init(ctx);
_save_current_init(ctx);
_mesa_noop_vtxfmt_init(&save->vtxfmt_noop);