summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-03-11 16:49:33 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-03-11 16:49:33 +0100
commitf1b01c96b954b47b8d68d17fadbb6d97740aefdc (patch)
treecba1a8385716134d5828c4ba87ecfee1661638e3 /platform/javascript
parent0deb3921e378178f04e9a185aa040a84fc9254e8 (diff)
HTML5: Fix ETC export for GLES2 fallback on mobile
Diffstat (limited to 'platform/javascript')
-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");
+ }
}
}
}