summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-03-29 11:05:02 +0000
committerKeith Whitwell <[email protected]>2004-03-29 11:05:02 +0000
commitc8100a02d28c8a424f69723778abebd950914bc6 (patch)
tree65257db12171856ef0407402020afc61d1e0e201 /src/mesa/tnl/t_context.c
parent638ea113b962bfba322033ffc4658335a10cb865 (diff)
First round of codegen for t_vtx_api.c -- ie the Begin/Vertex/End code.
Enable with env var: MESA_CODEGEN=t.
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r--src/mesa/tnl/t_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index 2c529afd79e..330c19d649d 100644
--- a/src/mesa/tnl/t_context.c
+++ b/src/mesa/tnl/t_context.c
@@ -121,6 +121,10 @@ _tnl_CreateContext( GLcontext *ctx )
tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts;
tnl->Driver.NotifyMaterialChange = _mesa_validate_all_lighting_tables;
+
+ if (getenv("MESA_CODEGEN"))
+ tnl->AllowCodegen = GL_TRUE;
+
return GL_TRUE;
}