summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vtx_api.c
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-04-05 06:49:36 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-04-05 06:49:36 +0000
commit8cc059ea6474c13bbba4f520ea1a63fd97a32450 (patch)
treefaf0b5cecca27df7674da58b303c364c7ff011c3 /src/mesa/tnl/t_vtx_api.c
parent8ef874f1a543c693cfef9c935bed05903800fbfe (diff)
downloadexternal_mesa3d-8cc059ea6474c13bbba4f520ea1a63fd97a32450.zip
external_mesa3d-8cc059ea6474c13bbba4f520ea1a63fd97a32450.tar.gz
external_mesa3d-8cc059ea6474c13bbba4f520ea1a63fd97a32450.tar.bz2
protected all codegen behind AllowCodegen
Diffstat (limited to 'src/mesa/tnl/t_vtx_api.c')
-rw-r--r--src/mesa/tnl/t_vtx_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c
index 26403fc..9f67c6c 100644
--- a/src/mesa/tnl/t_vtx_api.c
+++ b/src/mesa/tnl/t_vtx_api.c
@@ -905,7 +905,9 @@ void _tnl_vtx_init( GLcontext *ctx )
_tnl_current_init( ctx );
_tnl_exec_vtxfmt_init( ctx );
_tnl_generic_exec_vtxfmt_init( ctx );
- _tnl_x86_exec_vtxfmt_init( ctx ); /* x86 DISPATCH_ATTRFV */
+ if (tnl->AllowCodegen) {
+ _tnl_x86_exec_vtxfmt_init( ctx ); /* x86 DISPATCH_ATTRFV */
+ }
_mesa_install_exec_vtxfmt( ctx, &tnl->exec_vtxfmt );