mesa: FEATURE_dispatch to control dispatch table usage
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Jun 2008 22:56:32 +0000 (16:56 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:22:01 +0000 (09:22 -0600)
src/mesa/main/context.c
src/mesa/main/mfeatures.h

index dcc518e9fda276051aa249273e4c840894792b18..439ac6aba52504b0ea13ab43f965a65bc484f8a5 100644 (file)
@@ -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);
index 4e60611c4808bb21ac9c045df3029dda41ccf21f..6a71954648dde2332bed841619f5e150f13bf661 100644 (file)
@@ -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