From 0fccc9f393585434f9162217e34ff638238905eb Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 17 Feb 2024 19:07:14 +0100 Subject: [PATCH] Added S3TC_NOT_SUPPORTED define to be used by platforms externally. --- drivers/gles2/rasterizer_storage_gles2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index ccc9e713b..4c75aac9e 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -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