From b97f4f6e1083a939283505f3c324f70b6bf5341f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 4 May 2018 20:00:07 +0100 Subject: Move assets to an assets subdirectory and simplify model loading --- mtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mtl.c') diff --git a/mtl.c b/mtl.c index 42e5de2..3b46ce7 100644 --- a/mtl.c +++ b/mtl.c @@ -35,7 +35,7 @@ int mtl_load(char *name) snprintf(m->name, sizeof m->name, "%s", name); - snprintf(loc, sizeof loc, "./tex/%s.png", name); + snprintf(loc, sizeof loc, "assets/%s.diff.png", name); f = fopen(loc, "rb"); if (f == NULL) eprintf("Could not open '%s':", loc); -- cgit v1.2.3-54-g00ecf