projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glx: fix incorrect array stack memory allocation
[mesa.git]
/
src
/
glx
/
indirect_vertex_array.c
diff --git
a/src/glx/indirect_vertex_array.c
b/src/glx/indirect_vertex_array.c
index ad9882528ffb7bd7b206c72936284bf5d80bdac7..ec0e654ceae6bfe53baca2a3d98e33c1c5b92604 100644
(file)
--- a/
src/glx/indirect_vertex_array.c
+++ b/
src/glx/indirect_vertex_array.c
@@
-291,7
+291,8
@@
__glXInitVertexArrayState(__GLXcontext * gc)
arrays->stack_index = 0;
arrays->stack = malloc(sizeof(struct array_stack_state)
- * arrays->num_arrays);
+ * arrays->num_arrays
+ * __GL_CLIENT_ATTRIB_STACK_DEPTH);
}