summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2007-01-25 14:32:06 +0100
committerRoland Scheidegger <sroland@tungstengraphics.com>2007-01-25 14:32:06 +0100
commitdb79d7dea03d5129a05d48af19049cb740799669 (patch)
tree6de16c8316ca0a1c13642caf568fc7b296cdb29c
parent327462d901cc1ff8e98bcbeba18ad54c77926390 (diff)
fix dstelt memory allocation to avoid hash corruption
-rw-r--r--src/mesa/vbo/vbo_split_copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c
index fff733ccb5..df69e4ca28 100644
--- a/src/mesa/vbo/vbo_split_copy.c
+++ b/src/mesa/vbo/vbo_split_copy.c
@@ -469,7 +469,7 @@ static void replay_init( struct copy_context *copy )
copy->ib->count * 2);
copy->dstelt_size = MIN2(copy->dstelt_size,
copy->limits->max_indices);
- copy->dstelt = _mesa_malloc(copy->dstelt_size);
+ copy->dstelt = _mesa_malloc(sizeof(GLuint) * copy->dstelt_size);
copy->dstelt_nr = 0;
/* Setup the new index buffer to point to the allocated element