summaryrefslogtreecommitdiff
path: root/tex.c
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2023-04-17 22:15:31 -0700
committerkitty piapiac <kcp@bsd.computer>2023-04-17 22:15:31 -0700
commitf92b613698b5c4066068bb937b5993b1c5a3bd24 (patch)
tree23ef82f444f08a1a6fe97ae525b458f6b61a2a1e /tex.c
parent28e849b3c5d683a5cdb56047189b4d73e523bbf4 (diff)
separate shader stuff from graph.c
Diffstat (limited to 'tex.c')
-rw-r--r--tex.c3
1 files changed, 1 insertions, 2 deletions
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);}