From: Brian Paul Date: Tue, 17 Jun 2008 22:56:32 +0000 (-0600) Subject: mesa: FEATURE_dispatch to control dispatch table usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03d579aa19bcb1facec5ab67b6f7123e9ec9f26e;p=mesa.git mesa: FEATURE_dispatch to control dispatch table usage --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index dcc518e9fda..439ac6aba52 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1168,7 +1168,9 @@ _mesa_initialize_context(GLcontext *ctx, if (ctx->Exec) _mesa_free(ctx->Exec); } +#if FEATURE_dispatch _mesa_init_exec_table(ctx->Exec); +#endif ctx->CurrentDispatch = ctx->Exec; #if FEATURE_dlist _mesa_init_dlist_table(ctx->Save); diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 4e60611c480..6a71954648d 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -40,6 +40,7 @@ #define FEATURE_attrib_stack _HAVE_FULL_GL #define FEATURE_colortable _HAVE_FULL_GL #define FEATURE_convolution _HAVE_FULL_GL +#define FEATURE_dispatch _HAVE_FULL_GL #define FEATURE_dlist _HAVE_FULL_GL #define FEATURE_draw_read_buffer _HAVE_FULL_GL #define FEATURE_drawpix _HAVE_FULL_GL