Loading PNG images

View previous topic View next topic Go down

Loading PNG images

Post  NeilBright on Tue Sep 15, 2009 11:31 pm

Hi folks,

I have an app that loads an image and shows it using 2D window mode. The app works fine when running in the simulator but when I try to run on the device it fails to load in the png loading functions.

It seems to be falling through to this line in the function png_read_info() in pngread.c

png_handle_unknown(png_ptr, info_ptr, length);

Any ideas anyone? Does the iPhone device build process do something to pngs to optimise them?

Thanks peeps,
Neil.

NeilBright

Posts: 3
Join date: 2009-09-01

View user profile

Back to top Go down

Re: Loading PNG images

Post  sio2interactive on Tue Sep 15, 2009 9:48 pm

Project ->Edit Active Target -> Build -> Compress PNG Files -> OFF

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive

Posts: 1526
Join date: 2008-08-26
Age: 35
Location: Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Loading PNG images

Post  NeilBright on Tue Sep 15, 2009 9:51 pm

Excellent, that works a treat.

Thanks.

NeilBright

Posts: 3
Join date: 2009-09-01

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum