summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-03-15 14:36:16 +0000
committerKeith Whitwell <[email protected]>2004-03-15 14:36:16 +0000
commit5262dcccc87caf8083cb7867155d91ac2f38ffef (patch)
treef82651b87f85663f92b154b5bf9fd2dbbc4a4a7f /src/mesa/tnl/t_context.h
parentd83e9d9c00e0e89051bc756d58c6e227fd35f9f7 (diff)
Streamline the error path in VertexAttrib functions. Makes things
slightly easier for codegen.
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r--src/mesa/tnl/t_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index 0911101c753..1293db3bf3f 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -248,6 +248,8 @@ struct tnl_copied_vtx {
#define VERT_BUFFER_SIZE 2048 /* 8kbytes */
+#define ERROR_ATTRIB _TNL_ATTRIB_MAX /* error path for t_vtx_api.c */
+
typedef void (*attrfv_func)( const GLfloat * );
/* The assembly of vertices in immediate mode is separated from
@@ -267,7 +269,7 @@ struct tnl_vtx {
GLfloat *current[_TNL_ATTRIB_MAX]; /* points into ctx->Current, etc */
GLuint counter, initial_counter;
struct tnl_copied_vtx copied;
- attrfv_func tabfv[_TNL_ATTRIB_MAX][4];
+ attrfv_func tabfv[_TNL_ATTRIB_MAX+1][4]; /* +1 for ERROR_ATTRIB */
struct tnl_eval eval;
GLboolean *edgeflag_tmp;
GLboolean have_materials;