Ok,
This is mega specialist, so I won't expect any replies, but I'll ask anyway
So if I use KPaint and examine a .png image it reports it's stats as:
128x128 24bpp
However, if I then use libpng.so to load this (using the sample code) and then look at the header (info_ptr) it reports:
width: 128 (fine)
height: 128 (fine)
rowbytes: 384 (fine i.e. 128 * 3 = 384)
bit_depth: 8 (what ? I thought it was 24bpp or 3 bytes)
valid: 32768 (I presume this is unpacked size which seems to small since 128 * 3 * 128 = 49152)
Has anybody used this before ? Maybe the .png I'm reading is fine, it's just when I try and texture with it using opengl it's colours are all washed out and it's at 45 degrees.