mesa: add storage_count field to GLvector4f. Useful for debugging.

This commit is contained in:
Brian Paul
2009-05-06 15:09:18 -06:00
parent 828aa76f36
commit 1f75c2daea
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ _mesa_vector4f_alloc( GLvector4f *v, GLuint flags, GLuint count,
v->stride = 4 * sizeof(GLfloat);
v->size = 2;
v->storage = ALIGN_MALLOC( count * 4 * sizeof(GLfloat), alignment );
v->storage_count = count;
v->start = (GLfloat *) v->storage;
v->data = (GLfloat (*)[4]) v->storage;
v->count = 0;
+1
View File
@@ -67,6 +67,7 @@ typedef struct {
GLuint size; /**< 2-4 for vertices and 1-4 for texcoords */
GLuint flags; /**< which columns are dirty */
void *storage; /**< self-allocated storage */
GLuint storage_count; /**< storage size in elements */
} GLvector4f;