projects
/
vrtris
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ok now it works nicely in VR
[vrtris]
/
src
/
meshload.c
diff --git
a/src/meshload.c
b/src/meshload.c
index
ff398aa
..
a785ac1
100644
(file)
--- 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;
}