Mesa (gles3): mesa: don' t initialize exec dispatch tables in _mesa_initialize_context

Jordan Justen jljusten at kemper.freedesktop.org
Tue Nov 20 18:37:21 UTC 2012


Module: Mesa
Branch: gles3
Commit: 3f227bce6a2dc7e5a88ed7c2408f4e4eeb11b6a6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f227bce6a2dc7e5a88ed7c2408f4e4eeb11b6a6

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Fri Nov 16 10:42:02 2012 -0800

mesa: don't initialize exec dispatch tables in _mesa_initialize_context

Drivers must compute the context version, and then call
_mesa_initialize_exec_table themselves.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/main/context.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index f15b8bc..fb7729e 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -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;




More information about the mesa-commit mailing list