summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-12-09 14:19:41 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-12-09 14:19:41 +0000
commit688193800789d0ad883ca72edf2da392295cf734 (patch)
tree1be098364dde05722ef107809cf07d5b281d5992 /src/mesa/tnl/t_context.h
parenta70fa7129cf8549f8c01b01d5e317a5a07485706 (diff)
Call UpdateMaterials when they have changed
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r--src/mesa/tnl/t_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index 9d806da81f..33c4e06985 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -255,6 +255,7 @@ struct tnl_vtx {
attrfv_func tabfv[_TNL_ATTRIB_MAX][4];
struct tnl_eval eval;
GLboolean *edgeflag_tmp;
+ GLboolean have_materials;
};
@@ -282,7 +283,8 @@ struct tnl_vertex_list {
GLfloat *buffer;
GLuint count;
GLuint wrap_count; /* number of copied vertices at start */
- GLuint dangling_attr_ref; /* current attr implicitly referenced
+ GLboolean have_materials; /* bit of a hack - quick check for materials */
+ GLboolean dangling_attr_ref; /* current attr implicitly referenced
outside the list */
GLfloat *normal_lengths;
@@ -333,7 +335,8 @@ struct tnl_save {
GLfloat vertex[_TNL_ATTRIB_MAX*4]; /* current values */
GLfloat *attrptr[_TNL_ATTRIB_MAX];
GLuint counter, initial_counter;
- GLuint dangling_attr_ref;
+ GLboolean dangling_attr_ref;
+ GLboolean have_materials;
GLuint opcode_vertex_list;