don't specify a filler transformation when writing RGBA

Apparently fixes the failure of Texture Font Generator to write
the necessary PNGs.
This commit is contained in:
Andrew Barbarello
2015-12-20 22:01:50 -05:00
parent 43ec2f13b5
commit f451cc72cd
-1
View File
@@ -180,7 +180,6 @@ bool SavePNG( FILE *f, char szErrorbuf[1024], const Surface *pSurf )
PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE ); PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE );
png_write_info( pPng, pInfo ); png_write_info( pPng, pInfo );
png_set_filler( pPng, 0, PNG_FILLER_AFTER );
png_byte *pixels = (png_byte *) pSurf->pRGBA; png_byte *pixels = (png_byte *) pSurf->pRGBA;
for( int y = 0; y < pSurf->iHeight; y++ ) for( int y = 0; y < pSurf->iHeight; y++ )