From cdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 27 Sep 2024 20:58:01 +0000 Subject: implement exportmodel(2). this writes a model and its assets into a directory. --- texture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'texture.c') diff --git a/texture.c b/texture.c index 260c12e..97d2065 100644 --- a/texture.c +++ b/texture.c @@ -124,6 +124,7 @@ alloctexture(int type, Memimage *i) Texture *t; t = emalloc(sizeof *t); + memset(t, 0, sizeof *t); t->image = i; t->type = type; return t; -- cgit v1.2.3