mesa/main: remove mesa_print_display_list function

This function isn't exported, so applications can't, in fact use it. So
let's simplify the internals a bit here, remove the helper.
This commit is contained in:
Erik Faye-Lund 2026-04-23 11:20:14 +02:00 committed by Christian Gmeiner
parent 3956b85507
commit 3d6913ef3a

View file

@ -730,7 +730,8 @@ union int64_pair
#define BLOCK_SIZE 256
void mesa_print_display_list(GLuint list);
static void
print_list(struct gl_context *ctx, GLuint list, const char *fname);
/**
@ -13410,7 +13411,7 @@ _mesa_EndList(void)
ctx->ListState.CurrentList);
if (MESA_VERBOSE & VERBOSE_DISPLAY_LIST)
mesa_print_display_list(ctx->ListState.CurrentList->Name);
print_list(ctx, ctx->ListState.CurrentList->Name, NULL);
_mesa_HashUnlockMutex(&ctx->Shared->DisplayList);
@ -13442,7 +13443,7 @@ _mesa_CallList(GLuint list)
}
if (0)
mesa_print_display_list( list );
print_list(ctx, list, NULL);
/* Save the CompileFlag status, turn it off, execute the display list,
* and restore the CompileFlag. This is needed for GL_COMPILE_AND_EXECUTE
@ -14057,19 +14058,6 @@ _mesa_glthread_should_execute_list(struct gl_context *ctx,
}
/**
* Clients may call this function to help debug display list problems.
* This function is _ONLY_FOR_DEBUGGING_PURPOSES_. It may be removed,
* changed, or break in the future without notice.
*/
void
mesa_print_display_list(GLuint list)
{
GET_CURRENT_CONTEXT(ctx);
print_list(ctx, list, NULL);
}
/**********************************************************************/
/***** Initialization *****/
/**********************************************************************/