From 4425236a208968f6d8f655de338ddeda83dc7187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 10 Aug 2022 00:56:26 -0400 Subject: [PATCH] mesa: don't restore the dispatch at the end of glCallList No places use the glapi dispatch. All places use ctx directly. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/dlist.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 097645bbdc0..172417f6978 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -13455,7 +13455,6 @@ _mesa_CallList(GLuint list) /* also restore API function pointers to point to "save" versions */ if (save_compile_flag) { ctx->CurrentServerDispatch = ctx->Save; - _glapi_set_dispatch(ctx->CurrentServerDispatch); if (!ctx->GLThread.enabled) { ctx->CurrentClientDispatch = ctx->CurrentServerDispatch; } @@ -13579,7 +13578,6 @@ _mesa_CallLists(GLsizei n, GLenum type, const GLvoid * lists) /* also restore API function pointers to point to "save" versions */ if (save_compile_flag) { ctx->CurrentServerDispatch = ctx->Save; - _glapi_set_dispatch(ctx->CurrentServerDispatch); if (!ctx->GLThread.enabled) { ctx->CurrentClientDispatch = ctx->CurrentServerDispatch; }