]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
oops, this was broken
authorRudolf Polzer <divverent@alientrap.org>
Thu, 12 Apr 2012 15:14:40 +0000 (17:14 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 12 Apr 2012 15:14:40 +0000 (17:14 +0200)
tools/quake3/q3map2/image.c

index ad78212450f0c5fed4beafc65fb2720c1ae6ad7c..8ac3c6cee8efa8fb867831217c11f6249210f032 100644 (file)
@@ -167,9 +167,9 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in
        }
 
        /* set read callback */
-       pb->buffer = buffer;
-       pb->size = size;
-       pb->offset = 0;
+       pb.buffer = buffer;
+       pb.size = size;
+       pb.offset = 0;
        png_set_read_fn( png, &pb, PNGReadData );
        //png->io_ptr = &pb; /* hack! */