diff options
author | Eric Anholt <[email protected]> | 2013-01-17 16:58:49 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-01-21 21:26:48 -0800 |
commit | 7820e2dd8dac0978b3f4f94cc3aa0144eb19032b (patch) | |
tree | 97f5fee08ace549a4a58372870dcca68fb6492cb /src/mesa/main/context.c | |
parent | be4b1664fbc98b0b1d66bb91850ecada52b36b91 (diff) |
mesa: Delay display list save dispatch setup until Exec is set up.
This will let us copy from the Exec dispatch to deal with our commands that
don't get compiled into display lists.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 1c917e75a49..5e9e539b27f 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -938,6 +938,9 @@ _mesa_initialize_dispatch_tables(struct gl_context *ctx) { /* Do the code-generated setup of the exec table in api_exec.c. */ _mesa_initialize_exec_table(ctx); + + if (ctx->Save) + _mesa_initialize_save_table(ctx); } /** @@ -1044,7 +1047,7 @@ _mesa_initialize_context(struct gl_context *ctx, switch (ctx->API) { case API_OPENGL_COMPAT: ctx->BeginEnd = create_beginend_table(ctx); - ctx->Save = _mesa_create_save_table(ctx); + ctx->Save = _mesa_alloc_dispatch_table(); if (!ctx->BeginEnd || !ctx->Save) goto fail; |