From df943a40411d2b71381e5053d7c59e8cd2400fff Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 23 Apr 2005 11:55:18 +0000 Subject: Fix the worst problems with dangling edgeflag references in display lists. These mainly arise from edgeflag being the only attribute no longer stored internally as a float and requiring various special case paths to accomodate it. --- src/mesa/tnl/t_context.h | 3 +++ 1 file changed, 3 insertions(+) (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 905933a0d9b..e8a3c259822 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -282,6 +282,7 @@ struct tnl_vtx { GLfloat vertex[_TNL_ATTRIB_MAX*4]; /* current vertex */ GLfloat *attrptr[_TNL_ATTRIB_MAX]; /* points into vertex */ GLfloat *current[_TNL_ATTRIB_MAX]; /* points into ctx->Current, etc */ + GLfloat CurrentFloatEdgeFlag; GLuint counter, initial_counter; struct tnl_copied_vtx copied; @@ -379,6 +380,8 @@ struct tnl_save { GLuint opcode_vertex_list; struct tnl_copied_vtx copied; + + GLfloat CurrentFloatEdgeFlag; GLfloat *current[_TNL_ATTRIB_MAX]; /* points into ctx->ListState */ GLubyte *currentsz[_TNL_ATTRIB_MAX]; -- cgit v1.2.3