Fix initialization of PVR texture header.
This commit is contained in:
parent
e5b763b075
commit
3a99af11d7
@ -603,7 +603,7 @@ void CompressorPVR::compress(AlphaMode alphaMode, uint w, uint h, uint d, const
|
|||||||
|
|
||||||
//pvrtexture::PixelType src_pixel_type = pvrtexture::PixelType('b','g','r','a',8,8,8,8);
|
//pvrtexture::PixelType src_pixel_type = pvrtexture::PixelType('b','g','r','a',8,8,8,8);
|
||||||
pvrtexture::PixelType src_pixel_type = pvrtexture::PixelType('r','g','b',0,8,8,8,0);
|
pvrtexture::PixelType src_pixel_type = pvrtexture::PixelType('r','g','b',0,8,8,8,0);
|
||||||
pvrtexture::CPVRTextureHeader header(src_pixel_type.PixelTypeID, w, h, d, 1/*num mips*/, 1/*num array*/, 1/*num faces*/, color_space, ePVRTVarTypeUnsignedByteNorm);
|
pvrtexture::CPVRTextureHeader header(src_pixel_type.PixelTypeID, h, w, d, 1/*num mips*/, 1/*num array*/, 1/*num faces*/, color_space, ePVRTVarTypeUnsignedByteNorm);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
uint count = w * h * d;
|
uint count = w * h * d;
|
||||||
|
Loading…
Reference in New Issue
Block a user