right hand yellow
[carveJwlIkooP6JGAAIwe30JlM.git] / scene.h
diff --git a/scene.h b/scene.h
index 81d00c3f5c94c06f15ea1be92e80fbb69038a42f..74c4ea61a10476c4af5de918d2a07c066621521a 100644 (file)
--- a/scene.h
+++ b/scene.h
@@ -184,7 +184,7 @@ VG_STATIC scene *scene_fix( void *lin_alloc, scene *pscene )
        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      = vg_align8(sizeof(scene) + vertex_length + index_length);
 
    /* copy down index data */
    void *dst_indices = pscene->arrvertices + vertex_count;