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 <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27588>
This commit is contained in:
Marek Olšák
2024-02-06 02:58:55 -05:00
parent 72a38b3792
commit ec65dfaabd

View File

@@ -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);