just use CurrentClientDispatch directly
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
return (struct gl_context *) _glapi_get_context();
}
-
-/**
- * Get context's current API dispatch table.
- *
- * It'll either be the immediate-mode execute dispatcher, the display list
- * compile dispatcher, or the thread marshalling dispatcher.
- *
- * \param ctx GL context.
- *
- * \return pointer to dispatch_table.
- *
- * Simply returns __struct gl_contextRec::CurrentClientDispatch.
- */
-struct _glapi_table *
-_mesa_get_dispatch(struct gl_context *ctx)
-{
- return ctx->CurrentClientDispatch;
-}
-
/*@}*/
extern void
_mesa_init_constants(struct gl_constants *consts, gl_api api);
-extern struct _glapi_table *
-_mesa_get_dispatch(struct gl_context *ctx);
-
extern void
_mesa_set_context_lost_dispatch(struct gl_context *ctx);