aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-04-02 22:07:53 +0000
committerBrian Paul <[email protected]>2004-04-02 22:07:53 +0000
commit8b7da14b823145646da44e10cced0adeaa29d884 (patch)
tree9092892b9ca6c963b0df2f560beebf8e4131283f /src/mesa/main
parentec38d1c22c5960cf4a611b28e872ea6b07c45782 (diff)
added some assertions, just to be safe
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index ef9c74fb743..b99d71bb544 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -4639,6 +4639,7 @@ static void save_Attr1f( GLenum attr, GLfloat x )
n[2].f = x;
}
+ ASSERT(attr < VERT_ATTRIB_MAX);
ctx->ListState.ActiveAttribSize[attr] = 1;
ASSIGN_4V( ctx->ListState.CurrentAttrib[attr], x, 0, 0, 1);
@@ -4659,6 +4660,7 @@ static void save_Attr2f( GLenum attr, GLfloat x, GLfloat y )
n[3].f = y;
}
+ ASSERT(attr < VERT_ATTRIB_MAX);
ctx->ListState.ActiveAttribSize[attr] = 2;
ASSIGN_4V( ctx->ListState.CurrentAttrib[attr], x, y, 0, 1);
@@ -4680,6 +4682,7 @@ static void save_Attr3f( GLenum attr, GLfloat x, GLfloat y, GLfloat z )
n[4].f = z;
}
+ ASSERT(attr < VERT_ATTRIB_MAX);
ctx->ListState.ActiveAttribSize[attr] = 3;
ASSIGN_4V( ctx->ListState.CurrentAttrib[attr], x, y, z, 1);
@@ -4703,6 +4706,7 @@ static void save_Attr4f( GLenum attr, GLfloat x, GLfloat y, GLfloat z,
n[5].f = w;
}
+ ASSERT(attr < VERT_ATTRIB_MAX);
ctx->ListState.ActiveAttribSize[attr] = 4;
ASSIGN_4V( ctx->ListState.CurrentAttrib[attr], x, y, z, w);