fix dstelt memory allocation to avoid hash corruption

This commit is contained in:
Roland Scheidegger
2007-01-25 14:32:06 +01:00
parent 327462d901
commit db79d7dea0
+1 -1
View File
@@ -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