|
|
@ -505,8 +505,11 @@ void CTouchControls::CreateAtlasTexture() |
|
|
|
rectCount++; |
|
|
|
rectCount++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if( !textureList.Count() ) |
|
|
|
if( !textureList.Count() || rectCount == 0 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
free(rects); |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int atlasHeight = nextPowerOfTwo(sqrt((double)atlasSize)); |
|
|
|
int atlasHeight = nextPowerOfTwo(sqrt((double)atlasSize)); |
|
|
|
int sizeInBytes = atlasHeight*atlasHeight*4; |
|
|
|
int sizeInBytes = atlasHeight*atlasHeight*4; |
|
|
|