ports/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp
Dmitry Marakasov 76533f1736 - Switch to new github home [1]
- Update WWW [1]
- Regenerate patches
- Add LICENSE

PR:		208858 [1]
Submitted by:	fcsk.aim@gmail.com [1]
2016-04-21 11:01:59 +00:00

11 lines
337 B
C++

--- src/nvimage/ImageIO.cpp.orig 2010-05-15 09:12:05 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()) {