Mesa (7.8-gles): mesa: Only initialize TNL for OpenGL
Kristian Høgsberg
krh at kemper.freedesktop.org
Tue May 4 01:33:00 UTC 2010
Module: Mesa
Branch: 7.8-gles
Commit: cdf9f4680f0954f4042cd72732f6361d379d9496
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdf9f4680f0954f4042cd72732f6361d379d9496
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Mon May 3 21:18:04 2010 -0400
mesa: Only initialize TNL for OpenGL
---
src/mesa/main/context.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b1cd8d4..e0b7253 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -888,10 +888,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);
@@ -905,6 +901,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) {
More information about the mesa-commit
mailing list