summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-05-03 21:12:46 -0400
committerKristian Høgsberg <[email protected]>2010-05-03 21:21:58 -0400
commit208fdac73a9b7f8f511f0ec8eeb5c09d4577b3a4 (patch)
tree9b2cad130cfc3ed02b2371e55be31f857b9dcd48 /src/mesa/main
parent642839824e911a23fb863cd1983f2f61481530c9 (diff)
mesa: Only initialize save dispatch table for OpenGL
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 196a641bc04..439b6c8df12 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -901,18 +901,6 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
}
#endif
ctx->CurrentDispatch = ctx->Exec;
-
-#if FEATURE_dlist
- ctx->Save = _mesa_create_save_table();
- if (!ctx->Save) {
- _mesa_release_shared_state(ctx, ctx->Shared);
- free(ctx->Exec);
- return GL_FALSE;
- }
-
- _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt );
-#endif
-
/* Neutral tnl module stuff */
_mesa_init_exec_vtxfmt( ctx );
ctx->TnlModule.Current = NULL;
@@ -930,6 +918,16 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
switch (ctx->API) {
case API_OPENGL:
+#if FEATURE_dlist
+ ctx->Save = _mesa_create_save_table();
+ if (!ctx->Save) {
+ _mesa_release_shared_state(ctx, ctx->Shared);
+ free(ctx->Exec);
+ return GL_FALSE;
+ }
+
+ _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt );
+#endif
break;
case API_OPENGLES:
/**