diff options
author | Keith Whitwell <[email protected]> | 2000-11-24 15:21:59 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2000-11-24 15:21:59 +0000 |
commit | 9aff6cfdc37f83a2528463179ad0b50893bf0c58 (patch) | |
tree | 0bb5482717e276ab6b95b47ba2eb3ff8685094bf /src/mesa/tnl/t_context.c | |
parent | 65dcc30599348c2bfd7952b888db27edd1670fc6 (diff) |
Fixed a couple of bugs that crept into last commit
- Eval not compiled correctly
- Material colors computed incorrectly
Reworked the VERT_TEX flags, now support upto 12 texture units in tnl.
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r-- | src/mesa/tnl/t_context.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 457aa1c85fc..b8b608e356c 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -1,5 +1,6 @@ #include "mtypes.h" #include "mem.h" +#include "dlist.h" #include "vtxfmt.h" #include "t_context.h" @@ -149,24 +150,16 @@ _tnl_CreateContext( GLcontext *ctx ) _tnl_reset_input( ctx, 0, 0 ); /* initially outside begin/end */ - tnl->_CurrentFlag = (VERT_NORM | - VERT_INDEX | - VERT_RGBA | - VERT_SPEC_RGB | - VERT_FOG_COORD | - VERT_EDGE | - VERT_TEX0_12 | - VERT_TEX1_12 | - VERT_TEX2_12 | - VERT_TEX3_12 | - VERT_MATERIAL); - + tnl->_CurrentTex3Flag = 0; + tnl->_CurrentTex4Flag = 0; tnl->_CurrentPrimitive = GL_POLYGON+1; /* Hook our functions into exec and compile dispatch tables. */ - _mesa_install_save_vtxfmt( ctx, &tnl->vtxfmt ); _mesa_install_exec_vtxfmt( ctx, &tnl->vtxfmt ); + _mesa_install_save_vtxfmt( ctx, &tnl->vtxfmt ); + ctx->Save->EvalMesh1 = _mesa_save_EvalMesh1; /* fixme */ + ctx->Save->EvalMesh2 = _mesa_save_EvalMesh2; /* Set a few default values in the driver struct. */ @@ -250,7 +243,8 @@ _tnl_wakeup_exec( GLcontext *ctx ) /* Special state not restored by other methods: */ - _tnl_recalc_current_flag( ctx ); + _tnl_validate_current_tex_flags( ctx, ~0 ); + } void @@ -262,5 +256,7 @@ _tnl_wakeup_save_exec( GLcontext *ctx ) _tnl_wakeup_exec( ctx ); _mesa_install_save_vtxfmt( ctx, &tnl->vtxfmt ); + ctx->Save->EvalMesh1 = _mesa_save_EvalMesh1; /* fixme */ + ctx->Save->EvalMesh2 = _mesa_save_EvalMesh2; } |