projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b64a71
)
fix deprecation with libpng 1.4
author
Rudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 16:25:22 +0000
(17:25 +0100)
committer
Rudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 16:25:22 +0000
(17:25 +0100)
tools/quake3/q3map2/image.c
patch
|
blob
|
history
diff --git
a/tools/quake3/q3map2/image.c
b/tools/quake3/q3map2/image.c
index 7ce08aaaf88e5e3d621bf3b3e757f53e7e7f3546..4f0a87db04698c0e077efd08f15d2132b5eb3fdf 100644
(file)
--- a/
tools/quake3/q3map2/image.c
+++ b/
tools/quake3/q3map2/image.c
@@
-177,10
+177,9
@@
static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in
pb.size = size;
pb.offset = 0;
png_set_read_fn( png, &pb, PNGReadData );
- png->io_ptr = &pb; /* hack! */
/* set error longjmp */
- if( setjmp( png
->jmpbuf
) )
+ if( setjmp( png
_jmpbuf(png)
) )
{
Sys_Printf( "WARNING: An error occurred reading PNG image\n" );
png_destroy_read_struct( &png, &info, &end );