Tollerate 16bpc pngs with no alpha channel.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2173 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-04-06 23:20:23 +00:00
parent 22b43705d9
commit 4265caa79d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {