diff options
author | Brian Paul <[email protected]> | 2009-05-06 15:09:18 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-07 10:12:33 -0600 |
commit | 1f75c2daeae71985ec3b9fd8f1431aa33ae35d1e (patch) | |
tree | 3294f3bd682840c252e6c3b1ace87c45ca698542 /src/mesa/math | |
parent | 828aa76f360c96adea1725380c397d04690bfd04 (diff) |
mesa: add storage_count field to GLvector4f. Useful for debugging.
Diffstat (limited to 'src/mesa/math')
-rw-r--r-- | src/mesa/math/m_vector.c | 1 | ||||
-rw-r--r-- | src/mesa/math/m_vector.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/math/m_vector.c b/src/mesa/math/m_vector.c index dd631376d07..06364217277 100644 --- a/src/mesa/math/m_vector.c +++ b/src/mesa/math/m_vector.c @@ -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; diff --git a/src/mesa/math/m_vector.h b/src/mesa/math/m_vector.h index 9112a2b5d56..fcf618a7403 100644 --- a/src/mesa/math/m_vector.h +++ b/src/mesa/math/m_vector.h @@ -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; |