X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=bf69a632b0aab6cd46e6937357391c0ec7c8708b;hb=34a8df54eb962f3ad2e036355041f5bc5cabe5a0;hp=7a9460b4dbfe1a7f463b401f61718dc0c3eea5b0;hpb=56f320d8ce6e8997370ec8e02fe50ca2d07b67f0;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index 7a9460b..bf69a63 100644 --- a/scene.h +++ b/scene.h @@ -182,7 +182,6 @@ __attribute__((warn_unused_result)) VG_STATIC scene *scene_fix( void *lin_alloc, scene *pscene ) { /* FIXME: Why is this disabled? */ - return pscene; u32 vertex_count = pscene->vertex_count, indice_count = pscene->indice_count, @@ -191,7 +190,7 @@ VG_STATIC scene *scene_fix( void *lin_alloc, scene *pscene ) tot_size = sizeof(scene) + vertex_length + index_length; /* copy down index data */ - void *dst_indices = pscene->arrvertices + vertex_length; + void *dst_indices = pscene->arrvertices + vertex_count; memmove( dst_indices, pscene->arrindices, index_length ); /* realloc */