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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5789>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2020-07-07 11:00:58 +02:00 committed by Marge Bot
parent cbdb87c678
commit e6f7b4312f
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);