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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
This commit is contained in:
Marek Olšák
2022-08-10 00:56:26 -04:00
committed by Marge Bot
parent c75b152f08
commit 4425236a20
-2
View 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;
}