[FIXED] Program crash when load PVR image

[FIXED] Program crash when load PVR image
0.0 0


I tried to load different types of PVR files but all with no success, including RGBA8888, RGBA4444, and BPP4.

The debugger shows me the program stopped at this line:

pvrTag = CC_SWAP_INT32_LITTLE_TO_HOST(header->pvrTag);

All my images are generated from PVRTexTool.

Any idea?


Problem fixed. pvrtextool doesn’t add header info into the file. have to manually add in the command (i’m using command line tool by the way)

-f PVR