mesa: don't restore the dispatch at the end of glCallList
authorMarek Olšák <marek.olsak@amd.com>
Wed, 10 Aug 2022 04:56:26 +0000 (00:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
No places use the glapi dispatch. All places use ctx directly.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>

src/mesa/main/dlist.c

index 097645b..172417f 100644 (file)
@@ -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;
       }