summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-09-30 23:10:18 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-09-30 23:11:24 -0300
commitc24277a520acf856831ed78d4f96444290d17597 (patch)
tree88b33c91dc6b4e1b573293219d1f663fa520fd48 /platform/android
parent80d6bb7193a0ea2e233363bcc959cff882f5a6a4 (diff)
-Many GLES2 optimizations
-Android export fixes (use ETC if GLES2 backend in use) -revert to thekla atlas because xatlas is not working well
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/export/export.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index 683dbfdc5a..021a92ca1e 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -1054,7 +1054,12 @@ public:
if (api == 0)
r_features->push_back("etc");
else*/
- r_features->push_back("etc2");
+ String driver = ProjectSettings::get_singleton()->get("rendering/quality/driver/driver_name");
+ if (driver == "GLES2") {
+ r_features->push_back("etc");
+ } else {
+ r_features->push_back("etc2");
+ }
Vector<String> abis = get_enabled_abis(p_preset);
for (int i = 0; i < abis.size(); ++i) {