From 71db4f9e29648793600c8a8a2d54db00e74498ee Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Wed, 24 Dec 2014 01:25:21 +0000 Subject: Properly support png15 --- .../files/patch-src-nvimage-ImageIO.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp') diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp b/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp index b4e288d62c52..b0cdde632d6a 100644 --- a/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp +++ b/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp @@ -1,11 +1,11 @@ ---- src/nvimage/ImageIO.cpp.orig 2010-05-14 19:59:28.000000000 +0200 -+++ src/nvimage/ImageIO.cpp 2012-05-06 20:50:40.000000000 +0200 -@@ -599,6 +599,8 @@ - - #if defined(HAVE_PNG) - -+#include "pngpriv.h" -+ - static void user_read_data(png_structp png_ptr, png_bytep data, png_size_t length) +--- src/nvimage/ImageIO.cpp.orig 2010-05-14 17:59:28 UTC ++++ src/nvimage/ImageIO.cpp +@@ -603,7 +603,7 @@ static void user_read_data(png_structp p { nvDebugCheck(png_ptr != NULL); + +- Stream * s = (Stream *)png_ptr->io_ptr; ++ Stream * s = (Stream *)png_get_io_ptr(png_ptr); + s->serialize(data, (int)length); + + if (s->isError()) { -- cgit v1.2.3