summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-07-22 14:07:38 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-07-22 14:08:17 -0300
commit772485cdb3a0b0003da6e174157680559fa2a59e (patch)
tree475df1a1650d526781758c7d7aad7968bb7c9bd7 /platform
parent492999a33b389ac6ddfa0cb80c78409bd2d54e1c (diff)
Several changes to better run in mobile.
Diffstat (limited to 'platform')
-rw-r--r--platform/android/export/export.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index cb9d0c8b53..97f239c4da 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -2830,7 +2830,11 @@ public:
public:
virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) {
- r_features->push_back("etc");
+ int api = p_preset->get("graphics/api");
+ if (api == 0)
+ r_features->push_back("etc");
+ else
+ r_features->push_back("etc2");
}
virtual void get_export_options(List<ExportOption> *r_options) {