From f92b613698b5c4066068bb937b5993b1c5a3bd24 Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Mon, 17 Apr 2023 22:15:31 -0700 Subject: separate shader stuff from graph.c --- tex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tex.c') diff --git a/tex.c b/tex.c index 9523066..34b00df 100644 --- a/tex.c +++ b/tex.c @@ -4,7 +4,6 @@ #include"tex.h" Tex tex_load(IM C*n){Tex r;U32 c; stbi_set_flip_vertically_on_load(1); - N(r.d=stbi_load(n,(S32*)&r.w,(S32*)&r.h,(S32*)&c,3),die("failed to load texture: %s\n",stbi_failure_reason())); + N(r.d=stbi_load(n,(S32*)&r.w,(S32*)&r.h,(S32*)&c,4),die("failed to load texture: %s\n",stbi_failure_reason())); R r;} - V tex_free(Tex t){stbi_image_free(t.d);} -- cgit v1.2.3