X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=7a9460b4dbfe1a7f463b401f61718dc0c3eea5b0;hb=56f320d8ce6e8997370ec8e02fe50ca2d07b67f0;hp=902aedbff9924a8e4f2b7301d3e85bf6014dff4b;hpb=aa4c26eae2208872824e0eb5b71bc05c16d43242;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index 902aedb..7a9460b 100644 --- a/scene.h +++ b/scene.h @@ -182,13 +182,13 @@ __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, vertex_length = vertex_count * sizeof(scene_vert), index_length = indice_count * sizeof(u32), - tot_size = sizeof(scene) + vertex_length + index_length; + tot_size = sizeof(scene) + vertex_length + index_length; /* copy down index data */ void *dst_indices = pscene->arrvertices + vertex_length;