don't fail to load 16bits-per-plane rgb png images.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2204 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0560842635
commit
7a7ce6a7bf
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ error:
|
|||
if (png_get_valid( png, pnginfo, PNG_INFO_tRNS ))
|
||||
png_set_tRNS_to_alpha(png);
|
||||
|
||||
if (/*bitdepth == 8 && */colortype == PNG_COLOR_TYPE_RGB)
|
||||
if (bitdepth >= 8 && colortype == PNG_COLOR_TYPE_RGB)
|
||||
png_set_filler(png, 255, PNG_FILLER_AFTER);
|
||||
|
||||
if (colortype == PNG_COLOR_TYPE_GRAY || colortype == PNG_COLOR_TYPE_GRAY_ALPHA) {
|
||||
|
|
Loading…
Reference in a new issue