aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2020-07-07 11:00:58 +0200
committerMarge Bot <[email protected]>2020-07-15 09:13:50 +0000
commite6f7b4312f5f924c8da74d8989ef4ebec7466240 (patch)
tree113546747a0ce87e937535d577309921929419f6 /src/mesa
parentcbdb87c678cff96d41f1eb07f8161e4068df392e (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5789>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/context.c2
-rw-r--r--src/mesa/main/debug_output.c2
-rw-r--r--src/mesa/main/debug_output.h2
3 files changed, 3 insertions, 3 deletions
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);