diff options
author | Brian Paul <[email protected]> | 2009-02-11 13:52:17 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-11 13:52:17 -0700 |
commit | 2218592d47b963791105f5b8fa1a0b3f3a07f674 (patch) | |
tree | c7a10c524f2c2242e64cbe8f90697b6fae43fa8d /src/mesa/tnl/t_context.c | |
parent | c5bae14245192e83e7a91a6b72dc8451dd76f8ef (diff) |
mesa: get rid of _math_init()
Only VBO uses the evaluator code so call _math_init_eval() there.
Only TNL uses the transform/translate code so call _math_init_transformation()
and _math_init_translate9) there.
This is a step toward resolving some symbol collisions between Mesa's and
gallium's x86 codegen.
Have VBO and TNL modules call _math_init_transformation()
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r-- | src/mesa/tnl/t_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 7bfc7b00610..f0d31fdac35 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -32,6 +32,8 @@ #include "main/macros.h" #include "main/mtypes.h" #include "main/light.h" +#include "math/m_translate.h" +#include "math/m_xform.h" #include "tnl.h" #include "t_context.h" @@ -81,6 +83,9 @@ _tnl_CreateContext( GLcontext *ctx ) /* plug in the VBO drawing function */ vbo_set_draw_func(ctx, _tnl_draw_prims); + _math_init_transformation(); + _math_init_translate(); + return GL_TRUE; } |