Merge pull request #26921 from akien-mga/html5-etc-gles2-fallback

HTML5: Fix ETC export for GLES2 fallback on mobile
This commit is contained in:
Rémi Verschelde 2019-03-11 19:34:21 +01:00 committed by GitHub
commit 292c037f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ void EditorExportPlatformJavaScript::get_preset_features(const Ref<EditorExportP
r_features->push_back("etc");
} else if (driver == "GLES3") {
r_features->push_back("etc2");
if (ProjectSettings::get_singleton()->get("rendering/quality/driver/fallback_to_gles2")) {
r_features->push_back("etc");
}
}
}
}