projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: add storage_count field to GLvector4f. Useful for debugging.
[mesa.git]
/
src
/
mesa
/
math
/
m_vector.c
diff --git
a/src/mesa/math/m_vector.c
b/src/mesa/math/m_vector.c
index dd631376d070f64ad72c7f4e03dfc7a842b94a8b..06364217277adf73bf6bf94c8ed03153499d58af 100644
(file)
--- 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;