android: fix crashhandler

This commit is contained in:
nillerusr
2022-09-17 03:01:26 +03:00
parent 8a7e28d38d
commit b1a3eafbe6
8 changed files with 1525 additions and 17 deletions

View File

@@ -462,6 +462,11 @@ void CTouchControls::CreateAtlasTexture()
t->vtf = CreateVTFTexture();
if (t->vtf->Unserialize(buf))
{
if( t->vtf->Format() != IMAGE_FORMAT_RGBA8888 && t->vtf->Format() != IMAGE_FORMAT_BGRA8888 )
{
Msg("Format=%d\n", t->vtf->Format());
Error("Use RGBA8888/BGRA88888 for touch buttons!\n");
}
if( t->vtf->Height() != t->vtf->Width() || (t->vtf->Height() & (t->vtf->Height() - 1)) != 0 )
Error("Touch texture is wrong! Don't use npot textures for touch.");