-Many GLES2 optimizations

-Android export fixes (use ETC if GLES2 backend in use)
-revert to thekla atlas because xatlas is not working well
This commit is contained in:
Juan Linietsky 2018-09-30 23:10:18 -03:00
parent 80d6bb7193
commit c24277a520
6 changed files with 185 additions and 44 deletions

View file

@ -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) {