diff options
Diffstat (limited to 'tex.c')
-rw-r--r-- | tex.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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);} |