提交 201af99d 编写于 作者: S Sean Barrett

return correct # of channels for PNG

上级 65edb64d
...@@ -4606,7 +4606,7 @@ static unsigned char *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req ...@@ -4606,7 +4606,7 @@ static unsigned char *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req
} }
*x = p->s->img_x; *x = p->s->img_x;
*y = p->s->img_y; *y = p->s->img_y;
if (n) *n = p->s->img_out_n; if (n) *n = p->s->img_n;
} }
STBI_FREE(p->out); p->out = NULL; STBI_FREE(p->out); p->out = NULL;
STBI_FREE(p->expanded); p->expanded = NULL; STBI_FREE(p->expanded); p->expanded = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册