summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/indirect_va_private.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-08-19 18:53:26 +0000
committerIan Romanick <[email protected]>2005-08-19 18:53:26 +0000
commit2ae5645115124ecc97bf4a0ba9f5542cf2409845 (patch)
tree9cd06468e24d54d30d118e0b9e1b2edf83406c12 /src/glx/x11/indirect_va_private.h
parentb7c727e5006e26be3f70396030aab7512498f441 (diff)
Fix a realloc problem with indirect vertex arrays. The actual head pointer
wasn't tracked and used for the realloc, so it tended to explode.
Diffstat (limited to 'src/glx/x11/indirect_va_private.h')
-rw-r--r--src/glx/x11/indirect_va_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/x11/indirect_va_private.h b/src/glx/x11/indirect_va_private.h
index 0b0227f0e28..ab97dc645fb 100644
--- a/src/glx/x11/indirect_va_private.h
+++ b/src/glx/x11/indirect_va_private.h
@@ -211,12 +211,14 @@ struct array_state_vector {
* There are some bytes of extra data before \c array_info_cache that is
* used to hold the header for RenderLarge commands. This is
* \b not included in \c array_info_cache_size or
- * \c array_info_cache_buffer_size.
+ * \c array_info_cache_buffer_size. \c array_info_cache_base stores a
+ * pointer to the true start of the buffer (i.e., what malloc returned).
*/
/*@{*/
size_t array_info_cache_size;
size_t array_info_cache_buffer_size;
void * array_info_cache;
+ void * array_info_cache_base;
/*@}*/