Add support for older Android devices that don't support R11G11B10 texture format

This commit is contained in:
Wojciech Figat
2021-11-15 16:37:36 +01:00
parent 80ef2befd5
commit d07ca3fcf4
5 changed files with 47 additions and 6 deletions

View File

@@ -98,7 +98,14 @@ PixelFormat AndroidPlatformTools::GetTextureFormat(CookingData& data, TextureBas
}
}
return format;
switch (format)
{
// Not all Android devices support R11G11B10 textures (eg. M6 Note)
case PixelFormat::R11G11B10_Float:
return PixelFormat::R16G16B16A16_UNorm;
default:
return format;
}
}
void AndroidPlatformTools::OnBuildStarted(CookingData& data)