From 97cc15597a4617ee17365066cb83bf949a60cd18 Mon Sep 17 00:00:00 2001 From: Hombre Date: Sun, 20 Oct 2013 02:14:11 +0200 Subject: [PATCH] Solving issue 2009: "RT requires code change to work properly with libpng16" --- rtengine/imageio.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rtengine/imageio.cc b/rtengine/imageio.cc index 4f60e8e0f..9dc8d8b6d 100644 --- a/rtengine/imageio.cc +++ b/rtengine/imageio.cc @@ -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);