From 47a28c0b4d4ca27592e3cbb8e4b17d1cd8f7997d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 28 Jun 2001 17:34:14 +0000 Subject: restore normal length optimization in dlists --- src/mesa/tnl/t_context.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_context.h') diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index 226b877d85..a7ecb346b7 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -1,4 +1,4 @@ -/* $Id: t_context.h,v 1.28 2001/06/04 16:09:28 keithw Exp $ */ +/* $Id: t_context.h,v 1.29 2001/06/28 17:34:14 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -207,6 +207,7 @@ struct immediate GLfloat Color[IMM_SIZE][4]; GLfloat Obj[IMM_SIZE][4]; GLfloat Normal[IMM_SIZE][3]; + GLfloat *NormalLengthPtr; GLfloat TexCoord0[IMM_SIZE][4]; /* just VERT_TEX0 */ GLuint Elt[IMM_SIZE]; GLubyte EdgeFlag[IMM_SIZE]; @@ -256,6 +257,7 @@ typedef struct vertex_buffer GLubyte ClipOrMask; /* VERT_CLIP (3) */ GLubyte *ClipMask; /* VERT_CLIP (4) */ GLvector3f *NormalPtr; /* VERT_NORM */ + GLfloat *NormalLengthPtr; /* VERT_NORM */ GLboolean *EdgeFlag; /* VERT_EDGE */ GLvector4f *TexCoordPtr[MAX_TEXTURE_UNITS]; /* VERT_TEX_0..n */ GLvector1ui *IndexPtr[2]; /* VERT_INDEX */ @@ -525,6 +527,7 @@ typedef struct { */ GLboolean NeedProjCoords; GLboolean LoopbackDListCassettes; + GLboolean CalcDListNormalLengths; /* Derived state and storage for _tnl_eval_vb: */ -- cgit v1.2.3