From ec65dfaabd66f74e2a17d5f58a8fe8f88880b645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 6 Feb 2024 02:58:55 -0500 Subject: [PATCH] mesa: fix incorrect _mesa_HashInsertLocked parameter in _mesa_EndList This fixes random behavior when we turn on GL names reuse for display lists. (ctx->Const.ForceGLNamesReuse) Reviewed-by: Adam Jackson Part-of: --- src/mesa/main/dlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 63feef2b097..b0184a24e20 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -13401,7 +13401,7 @@ _mesa_EndList(void) /* Install the new list */ _mesa_HashInsertLocked(ctx->Shared->DisplayList, ctx->ListState.CurrentList->Name, - ctx->ListState.CurrentList, true); + ctx->ListState.CurrentList, false); if (MESA_VERBOSE & VERBOSE_DISPLAY_LIST) mesa_print_display_list(ctx->ListState.CurrentList->Name);