mesa: don't initialize exec dispatch tables in _mesa_initialize_context
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 16 Nov 2012 18:42:02 +0000 (10:42 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 16 Dec 2012 23:30:27 +0000 (15:30 -0800)
Drivers must compute the context version, and then call
_mesa_initialize_exec_table themselves.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/context.c

index df7647dd5adf07445bb55864113fbad9b51c064b..c1624bf724ef2a05a47c8ac189de5faa0b337e31 100644 (file)
@@ -938,9 +938,6 @@ _mesa_initialize_context(struct gl_context *ctx,
    /* setup the API dispatch tables with all nop functions */
    ctx->Exec = _mesa_alloc_dispatch_table(_gloffset_COUNT);
 
-   /* setup the API exec functions */
-   _mesa_initialize_exec_table(ctx);
-
    if (!ctx->Exec) {
       _mesa_reference_shared_state(ctx, &ctx->Shared, NULL);
       return GL_FALSE;