From: John Tsiombikas Date: Fri, 1 Mar 2019 21:54:20 +0000 (+0200) Subject: forgot to push an index when first inserting a new vertex attrib tuple X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=commitdiff_plain;h=5336d251a0e6f2d07d9bdfaca2a9b197f7d8c58a forgot to push an index when first inserting a new vertex attrib tuple --- diff --git a/src/meshload.c b/src/meshload.c index ff398aa..a785ac1 100644 --- a/src/meshload.c +++ b/src/meshload.c @@ -181,6 +181,11 @@ int cmesh_load(struct cmesh *mesh, const char *fname) } } + if(cmesh_push_index(mesh, newidx) == -1) { + fprintf(stderr, "load_mesh: failed to resize index array\n"); + goto err; + } + if((newfv = malloc(sizeof *newfv))) { *newfv = fv; }