summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-05-03 21:18:04 -0400
committerKristian Høgsberg <[email protected]>2010-05-03 21:21:58 -0400
commite83ca4052b3247c35f358cfe67d74a58c9fb37b1 (patch)
treebd97e10918e05da932c6b5a14327a0e97ef13c09 /src/mesa
parent208fdac73a9b7f8f511f0ec8eeb5c09d4577b3a4 (diff)
mesa: Only initialize TNL for OpenGL
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/context.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 439b6c8df12..4dd448a698d 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -901,10 +901,6 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
}
#endif
ctx->CurrentDispatch = ctx->Exec;
- /* Neutral tnl module stuff */
- _mesa_init_exec_vtxfmt( ctx );
- ctx->TnlModule.Current = NULL;
- ctx->TnlModule.SwapCount = 0;
ctx->FragmentProgram._MaintainTexEnvProgram
= (_mesa_getenv("MESA_TEX_PROG") != NULL);
@@ -918,6 +914,11 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
switch (ctx->API) {
case API_OPENGL:
+ /* Neutral tnl module stuff */
+ _mesa_init_exec_vtxfmt( ctx );
+ ctx->TnlModule.Current = NULL;
+ ctx->TnlModule.SwapCount = 0;
+
#if FEATURE_dlist
ctx->Save = _mesa_create_save_table();
if (!ctx->Save) {