From a2fd444d80db62a3d0212144247299d5aeadd406 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Mon, 29 Mar 2010 12:41:12 +0000 Subject: [PATCH] - fix build for png-1.4.1 --- astro/gaia/files/patch-Texture.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 astro/gaia/files/patch-Texture.cc diff --git a/astro/gaia/files/patch-Texture.cc b/astro/gaia/files/patch-Texture.cc new file mode 100644 index 000000000000..4a8647eda8e8 --- /dev/null +++ b/astro/gaia/files/patch-Texture.cc @@ -0,0 +1,20 @@ +--- programs/gaia/Texture.cc.orig 2006-11-29 04:21:14.000000000 +0100 ++++ programs/gaia/Texture.cc 2010-03-29 14:33:38.000000000 +0200 +@@ -277,7 +277,7 @@ + + fread(sig, 8, 1, infile); + +- if (!png_check_sig(sig, 8)) ++ if (png_sig_cmp(sig, 0, 8)) + throw Exception("bad PNG signature"); + + /* create structures */ +@@ -308,7 +308,7 @@ + switch (color_type) { + case PNG_COLOR_TYPE_GRAY: + if (bit_depth < 8) +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + m_glInternalFormat = GL_LUMINANCE8; + m_glFormat = GL_LUMINANCE; + break;