summaryrefslogtreecommitdiff
path: root/vlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'vlib.h')
-rw-r--r--vlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vlib.h b/vlib.h
index 7750a71..55c9d06 100644
--- a/vlib.h
+++ b/vlib.h
@@ -12788,6 +12788,9 @@ typedef struct {
V_DECL bool model_load(Model *model, GLProgram *program, const char *filename) {
char *dot = strchr(filename, '.');
+
+ memset(model, 0, sizeof *model);
+
if (dot) {
FILE *fp = fopen(filename, "r");
if (fp) {