summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-10-13 11:11:47 -0400
committerKristian Høgsberg <[email protected]>2010-10-14 08:53:59 -0400
commit81ccb3e2ce708619f4c23537a237d61bdffdd35f (patch)
tree5f98c3b1fce750b949191044ddf75b03a5e03da6 /src/mesa/main/context.c
parentd6de1f44a0cdcc739d3b319b5f102e1733e5b4e3 (diff)
Drop the "neutral" tnl module
Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index e7d8146f749..10166ae5a2b 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -949,11 +949,6 @@ _mesa_initialize_context_for_api(struct gl_context *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) {