projects
/
vrtris
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e50e34c
)
forgot to push an index when first inserting a new vertex attrib tuple
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Fri, 1 Mar 2019 21:54:20 +0000
(23:54 +0200)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Fri, 1 Mar 2019 21:54:20 +0000
(23:54 +0200)
src/meshload.c
patch
|
blob
|
history
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;
}