mesa: Branch 'vbo-0.2'

Roland Scheidegger sroland at kemper.freedesktop.org
Thu Jan 25 13:32:11 UTC 2007


 src/mesa/vbo/vbo_split_copy.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree db79d7dea03d5129a05d48af19049cb740799669 (from 327462d901cc1ff8e98bcbeba18ad54c77926390)
Author: Roland Scheidegger <sroland at tungstengraphics.com>
Date:   Thu Jan 25 14:32:06 2007 +0100

    fix dstelt memory allocation to avoid hash corruption

diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c
index fff733c..df69e4c 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_con
 			    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



More information about the mesa-commit mailing list