Solving issue 2009: "RT requires code change to work properly with libpng16"

This commit is contained in:
Hombre
2013-10-20 02:14:11 +02:00
parent c79a869b45
commit 97cc15597a

View File

@@ -296,12 +296,6 @@ int ImageIO::loadPNG (Glib::ustring fname) {
// if (bps==8 && bit_depth==16) png_set_strip_16(png);
//updating png info struct
png_read_update_info(png,info);
png_get_IHDR(png,info,&width,&height,&bit_depth,&color_type,&interlace_type,&compression_type, &filter_method);
if (color_type & PNG_COLOR_MASK_ALPHA)
png_set_strip_alpha(png);
png_read_update_info(png,info);
png_get_IHDR(png,info,&width,&height,&bit_depth,&color_type,&interlace_type,&compression_type, &filter_method);