Reducing txd.img filesize according to DXT compression ratio.
This commit is contained in:
@@ -563,7 +563,11 @@ static uint32
|
||||
getLevelSize(Raster *raster, int32 level)
|
||||
{
|
||||
Gl3Raster *natras = PLUGINOFFSET(Gl3Raster, raster, nativeRasterOffset);
|
||||
#ifdef PSP2_NO_DXT_TEXTURES
|
||||
uint32 size = raster->stride*raster->height;
|
||||
#else
|
||||
uint32 size = raster->width*raster->height;
|
||||
#endif
|
||||
while(level--)
|
||||
size /= 4;
|
||||
return size;
|
||||
|
||||
Reference in New Issue
Block a user