mirror of https://github.com/axmolengine/axmol.git
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:
parent
3cd82c8bf3
commit
9df6d1271b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue