From c75b152f085a0f273cf535f27dc96f2df69f9817 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 10 Aug 2022 00:08:02 -0400 Subject: [PATCH] vbo: don't call _glapi_set_dispatch for GL_COMPILE_AND_EXECUTE loopback It uses Exec directly, so this didn't do anything. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/vbo/vbo_save_api.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 50b5551..5abc417 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -972,10 +972,6 @@ end: /* Deal with GL_COMPILE_AND_EXECUTE: */ if (ctx->ExecuteFlag) { - struct _glapi_table *dispatch = GET_DISPATCH(); - - _glapi_set_dispatch(ctx->Exec); - /* _vbo_loopback_vertex_list doesn't use the index buffer, so we have to * use buffer_in_ram (which contains all vertices) instead of current_bo * (which contains deduplicated vertices *when* UseLoopback is false). @@ -989,8 +985,6 @@ end: vao->BufferBinding[0].Offset = -(GLintptr)(start_offset * stride); _vbo_loopback_vertex_list(ctx, node, save->vertex_store->buffer_in_ram); vao->BufferBinding[0].Offset = original; - - _glapi_set_dispatch(dispatch); } /* Reset our structures for the next run of vertices: -- 2.7.4