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>
/* 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);
void
-_mesa_free_errors_data(struct gl_context *ctx)
+_mesa_destroy_debug_output(struct gl_context *ctx)
{
if (ctx->Debug) {
debug_destroy(ctx->Debug);
_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);