Skip to content

Fix crash on Android devices supporting S3TC

Rafał Mikrut requested to merge github/fork/lawnjelly/android-s3tc2 into master

Created by: lawnjelly

Fixes #28308

Android devices that support S3TC will currently crash if you export / run from the IDE a project that has S3TC textures imported. This is because these are not exported in the APK (android exporter, exporter.cpp, get_preset_features()), but the .import file still contains a reference to the S3TC files, and the app will attempt to load the resource and fail.

This PR fixes this by simply faking lack of hardware support for S3TC on android devices.

An alternative method maybe to remove the reference to the s3tc in the .import file.

Merge request reports