Package: libdevil1c2 Version: 1.6.7-4.1 Followup-For: Bug #314829
I have come up with a patch to fix the reading of PNG files on the amd64 platform. This was discovered while browsing the forums over at http://www.ogre3d.org. I have cleaned up the patch to remove unnecessary complexity. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages libdevil1c2 depends on: ii giflib3g 3.0-12 shared library for GIF images (run ii libc6 2.3.6-7 GNU C Library: Shared libraries pi libglu1-mesa [libglu1] 6.4.1-0.4 The OpenGL utility library (GLU) ii libjpeg62 6b-12 The Independent JPEG Group's JPEG ii libmng1 1.0.9-1 Multiple-image Network Graphics li ii libpng12-0 1.2.8rel-5.1 PNG library - runtime ii libsdl1.2debian 1.2.9-5+b1 Simple DirectMedia Layer ii libtiff4 3.8.2-1 Tag Image File Format (TIFF) libra ii zlib1g 1:1.2.3-11 compression library - runtime libdevil1c2 recommends no packages. -- no debconf information !DSPAM:444978f4322099839086572!
diff -ru devil-1.6.7/src-IL/src/il_png.c devil-1.6.7.new/src-IL/src/il_png.c --- devil-1.6.7/src-IL/src/il_png.c 2004-06-24 02:38:54.000000000 -0700 +++ devil-1.6.7.new/src-IL/src/il_png.c 2006-04-21 16:14:37.237307000 -0700 @@ -282,11 +282,10 @@ ILboolean readpng_get_image(ILdouble display_exponent) { - ILuint i; png_bytepp row_pointers = NULL; - ILuint width, height, channels; - ILdouble screen_gamma = 1.0, image_gamma; - ILuint bit_depth; + png_uint_32 width, height; + ILuint i, channels, bit_depth; + ILdouble screen_gamma = 1.0, image_gamma; /* setjmp() must be called in every function that calls a PNG-reading