From 0cb28418d06c30e431bdff515c1d36a812d5950d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 13 Feb 2002 00:53:19 +0000 Subject: More suport for t&l drivers Fix GLuint compare bugs Fix RESET_STIPPLE calls --- src/mesa/tnl/t_context.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/mesa/tnl/t_context.c') diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index ae1d7f5361..2cea4b1dcd 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -1,4 +1,4 @@ -/* $Id: t_context.c,v 1.23 2001/12/18 04:06:46 brianp Exp $ */ +/* $Id: t_context.c,v 1.24 2002/02/13 00:53:20 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -33,6 +33,7 @@ #include "mtypes.h" #include "mem.h" #include "dlist.h" +#include "light.h" #include "vtxfmt.h" #include "t_context.h" @@ -125,6 +126,8 @@ _tnl_CreateContext( GLcontext *ctx ) tnl->Driver.Render.PrimTabElts = _tnl_render_tab_elts; tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts; + tnl->Driver.NotifyMaterialChange = _mesa_validate_all_lighting_tables; + return GL_TRUE; @@ -220,16 +223,19 @@ void _tnl_need_dlist_loopback( GLcontext *ctx, GLboolean mode ) { TNLcontext *tnl = TNL_CONTEXT(ctx); - if (tnl->LoopbackDListCassettes != mode) { - tnl->LoopbackDListCassettes = mode; - } + tnl->LoopbackDListCassettes = mode; } void _tnl_need_dlist_norm_lengths( GLcontext *ctx, GLboolean mode ) { TNLcontext *tnl = TNL_CONTEXT(ctx); - if (tnl->CalcDListNormalLengths != mode) { - tnl->CalcDListNormalLengths = mode; - } + tnl->CalcDListNormalLengths = mode; +} + +void +_tnl_isolate_materials( GLcontext *ctx, GLboolean mode ) +{ + TNLcontext *tnl = TNL_CONTEXT(ctx); + tnl->IsolateMaterials = mode; } -- cgit v1.2.3