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:
parent
cbdb87c678
commit
e6f7b4312f
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue