diff options
author | volzhs <volzhs@gmail.com> | 2018-12-26 00:47:06 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2018-12-26 00:47:06 +0900 |
commit | 130cdb2f2a1cbd425f1e390242da0b3401ed7c6d (patch) | |
tree | 80f17efae05c071c8dce5092769080e60243566e | |
parent | 10e9221c49eddc05cb36c0b582060cac9e4c8cef (diff) |
Make possible to use ETC texture format with GLES3 on Android
Currently, textures are not exported if use ETC on project settings and export project with GLES3.
GLES3 should be able to use ETC format also.
-rw-r--r-- | platform/android/export/export.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index bfe737f138..664e74ce61 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1121,9 +1121,10 @@ public: r_features->push_back("etc"); else*/ String driver = ProjectSettings::get_singleton()->get("rendering/quality/driver/driver_name"); - if (driver == "GLES2") { + if (driver == "GLES2" || driver == "GLES3") { r_features->push_back("etc"); - } else { + } + if (driver == "GLES3") { r_features->push_back("etc2"); } |