nvidia-texture-tools/nvidia-texture-tools-2.0.8-png-api.patch
2012-12-20 20:05:45 -02:00

14 lines
409 B
Diff

Index: src/src/nvimage/ImageIO.cpp
===================================================================
--- src/src/nvimage/ImageIO.cpp (revision 9895)
+++ src/src/nvimage/ImageIO.cpp (working copy)
@@ -603,7 +603,7 @@
{
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()) {