From 81ccb3e2ce708619f4c23537a237d61bdffdd35f Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 13 Oct 2010 11:11:47 -0400 Subject: 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. --- src/mesa/main/context.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index e7d8146f74..10166ae5a2 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) { -- cgit v1.2.3