oops, this was broken

This commit is contained in:
Rudolf Polzer 2012-04-12 17:14:40 +02:00
parent 62d99f889c
commit d005d46d64

View 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! */