diff options
author | Daniel Borca <[email protected]> | 2004-04-05 06:49:36 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-04-05 06:49:36 +0000 |
commit | 8cc059ea6474c13bbba4f520ea1a63fd97a32450 (patch) | |
tree | faf0b5cecca27df7674da58b303c364c7ff011c3 /src/mesa/tnl/t_vtx_api.c | |
parent | 8ef874f1a543c693cfef9c935bed05903800fbfe (diff) |
protected all codegen behind AllowCodegen
Diffstat (limited to 'src/mesa/tnl/t_vtx_api.c')
-rw-r--r-- | src/mesa/tnl/t_vtx_api.c | 4 |
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 26403fc8ef2..9f67c6cee73 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 ); |