From: Pierre-Eric Pelloux-Prayer Date: Tue, 7 Jul 2020 09:00:58 +0000 (+0200) Subject: mesa: rename _mesa_free_errors_data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6f7b4312f5f924c8da74d8989ef4ebec7466240;p=mesa.git mesa: rename _mesa_free_errors_data Use the _mesa_init_XXX / _mesa_destroy_XXX pattern to clearly associate the 2 functions. Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index be2e7df5824..d1949ada746 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1386,7 +1386,7 @@ _mesa_free_context_data(struct gl_context *ctx) /* needs to be after freeing shared state */ _mesa_free_display_list_data(ctx); - _mesa_free_errors_data(ctx); + _mesa_destroy_debug_output(ctx); free((void *)ctx->Extensions.String); diff --git a/src/mesa/main/debug_output.c b/src/mesa/main/debug_output.c index 3f1ca8bf340..6d4c8e72ee3 100644 --- a/src/mesa/main/debug_output.c +++ b/src/mesa/main/debug_output.c @@ -1281,7 +1281,7 @@ _mesa_init_debug_output(struct gl_context *ctx) void -_mesa_free_errors_data(struct gl_context *ctx) +_mesa_destroy_debug_output(struct gl_context *ctx) { if (ctx->Debug) { debug_destroy(ctx->Debug); diff --git a/src/mesa/main/debug_output.h b/src/mesa/main/debug_output.h index 8a5eedc21f0..e467b087b5e 100644 --- a/src/mesa/main/debug_output.h +++ b/src/mesa/main/debug_output.h @@ -43,7 +43,7 @@ void _mesa_init_debug_output(struct gl_context *ctx); void -_mesa_free_errors_data(struct gl_context *ctx); +_mesa_destroy_debug_output(struct gl_context *ctx); void _mesa_debug_get_id(GLuint *id);