summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-04-05 06:49:36 +0000
committerDaniel Borca <[email protected]>2004-04-05 06:49:36 +0000
commit8cc059ea6474c13bbba4f520ea1a63fd97a32450 (patch)
treefaf0b5cecca27df7674da58b303c364c7ff011c3 /src/mesa/tnl/t_context.c
parent8ef874f1a543c693cfef9c935bed05903800fbfe (diff)
protected all codegen behind AllowCodegen
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r--src/mesa/tnl/t_context.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index 330c19d649d..1f8c4d40fab 100644
--- a/src/mesa/tnl/t_context.c
+++ b/src/mesa/tnl/t_context.c
@@ -81,6 +81,9 @@ _tnl_CreateContext( GLcontext *ctx )
return GL_FALSE;
}
+ if (getenv("MESA_CODEGEN"))
+ tnl->AllowCodegen = GL_TRUE;
+
/* Initialize the VB.
*/
tnl->vb.Size = ctx->Const.MaxArrayLockSize + MAX_CLIPPED_VERTICES;
@@ -121,10 +124,6 @@ _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;
}