From: Brian Paul Date: Tue, 29 Jan 2013 19:09:56 +0000 (-0700) Subject: mesa: remove ctx->Driver.Error() hook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce6bf2d4c5968da9beaa5c8192fe1a15e64f318e;p=mesa.git mesa: remove ctx->Driver.Error() hook Not used by any driver anymore. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index cf6b686dd7e..aab61e1a4a8 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -75,7 +75,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver) driver->UpdateState = NULL; /* REQUIRED! */ driver->GetBufferSize = NULL; /* REQUIRED! */ driver->ResizeBuffers = _mesa_resize_framebuffer; - driver->Error = NULL; driver->Finish = NULL; driver->Flush = NULL; diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 5e9e539b27f..531b811fecd 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1663,11 +1663,6 @@ _mesa_record_error(struct gl_context *ctx, GLenum error) if (ctx->ErrorValue == GL_NO_ERROR) { ctx->ErrorValue = error; } - - /* Call device driver's error handler, if any. This is used on the Mac. */ - if (ctx->Driver.Error) { - ctx->Driver.Error(ctx); - } } diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index f91fd412032..9a75fd9541a 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -108,12 +108,6 @@ struct dd_function_table { void (*ResizeBuffers)( struct gl_context *ctx, struct gl_framebuffer *fb, GLuint width, GLuint height); - /** - * Called whenever an error is generated. - * __struct gl_contextRec::ErrorValue contains the error value. - */ - void (*Error)( struct gl_context *ctx ); - /** * This is called whenever glFinish() is called. */