Added S3TC_NOT_SUPPORTED define to be used by platforms externally.

This commit is contained in:
Relintai 2024-02-17 19:07:14 +01:00
parent cdb3f03e61
commit 0fccc9f393

View File

@ -5994,7 +5994,7 @@ void RasterizerStorageGLES2::initialize() {
// If the desktop build is using S3TC, and you export / run from the IDE for android, if the device supports
// S3TC it will crash trying to load these textures, as they are not exported in the APK. This is a simple way
// to prevent Android devices trying to load S3TC, by faking lack of hardware support.
#if defined(ANDROID_ENABLED) || defined(IPHONE_ENABLED)
#if defined(ANDROID_ENABLED) || defined(IPHONE_ENABLED) || defined(S3TC_NOT_SUPPORTED)
config.s3tc_supported = false;
#endif