You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Force disable S3TC support on Android/iOS since we don't handle it
Fixes #63909 for now. This could be improved in the future if we want to properly support S3TC on mobile.
This commit is contained in:
@@ -290,9 +290,14 @@ bool Utilities::has_os_feature(const String &p_feature) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
#if !defined(ANDROID_ENABLED) && !defined(IPHONE_ENABLED)
|
||||
// Some Android devices report support for S3TC but we don't expect that and don't export the textures.
|
||||
// This could be fixed but so few devices support it that it doesn't seem useful (and makes bigger APKs).
|
||||
// For good measure we do the same hack for iOS, just in case.
|
||||
if (p_feature == "s3tc" && RD::get_singleton()->texture_is_format_supported_for_usage(RD::DATA_FORMAT_BC1_RGB_UNORM_BLOCK, RD::TEXTURE_USAGE_SAMPLING_BIT)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (p_feature == "bptc" && RD::get_singleton()->texture_is_format_supported_for_usage(RD::DATA_FORMAT_BC7_UNORM_BLOCK, RD::TEXTURE_USAGE_SAMPLING_BIT)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user