CCTexturePVR now sets its _format when unpacking from PVRv3 as well as PVRv2

When loading a PVRv3 the _format variable would not be set, always being the default value.
This commit is contained in:
Andrew Glass 2013-06-18 16:16:17 +02:00
parent 3cd82c8bf3
commit 9df6d1271b
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@ bool CCTexturePVR::unpackPVRv3Data(unsigned char* dataPointer, unsigned int data
if( v3_pixel_formathash[i].pixelFormat == pixelFormat )
{
_pixelFormatInfo = v3_pixel_formathash[i].pixelFormatInfo;
_format = _pixelFormatInfo->ccPixelFormat;
_hasAlpha = _pixelFormatInfo->alpha;
infoValid = true;
break;