summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-11 19:34:21 +0100
committerGitHub <noreply@github.com>2019-03-11 19:34:21 +0100
commit292c037f9b1577f0d195824be149d8cea7d0d2fc (patch)
tree263e139a3458ea408d0261d33d0a707a87cc2ee2 /platform
parent0eb61c3106c0498114d796ef3baa52b31084fde9 (diff)
parentf1b01c96b954b47b8d68d17fadbb6d97740aefdc (diff)
Merge pull request #26921 from akien-mga/html5-etc-gles2-fallback
HTML5: Fix ETC export for GLES2 fallback on mobile
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/export/export.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp
index 871a8769d9..487da77b10 100644
--- a/platform/javascript/export/export.cpp
+++ b/platform/javascript/export/export.cpp
@@ -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");
+ }
}
}
}