diff options
Diffstat (limited to 'vlib.h')
-rw-r--r-- | vlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |