Solving issue 2009: "RT requires code change to work properly with libpng16"
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user