]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix deprecation with libpng 1.4
authorRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 16:25:22 +0000 (17:25 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 16:25:22 +0000 (17:25 +0100)
tools/quake3/q3map2/image.c

index 7ce08aaaf88e5e3d621bf3b3e757f53e7e7f3546..4f0a87db04698c0e077efd08f15d2132b5eb3fdf 100644 (file)
@@ -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 );