summaryrefslogtreecommitdiff
path: root/platform/web
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-09-07 17:44:36 -0700
committerclayjohn <claynjohn@gmail.com>2022-09-19 10:26:10 -0700
commit4a1c7de57c53af429a3523bdcbef65c8c791f09f (patch)
tree5d555703ca89e5733e5428e3c9508fa342139950 /platform/web
parentc2babb65580d4dce3a0fc8834dd05fe177227b6e (diff)
Split rendering driver project setting into renderer_name and rendering_driver. To differentiate between a driver (e.g. Vulkan or D3D12) and a renderer (e.g. clustered or mobile renderer).
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/export/export_plugin.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp
index 306453c1eb..1c327fe4b2 100644
--- a/platform/web/export/export_plugin.cpp
+++ b/platform/web/export/export_plugin.cpp
@@ -307,13 +307,7 @@ void EditorExportPlatformWeb::get_preset_features(const Ref<EditorExportPreset>
}
if (p_preset->get("vram_texture_compression/for_mobile")) {
- String driver = ProjectSettings::get_singleton()->get("rendering/driver/driver_name");
- if (driver == "opengl3") {
- r_features->push_back("etc");
- } else if (driver == "vulkan") {
- // FIXME: Review if this is correct.
- r_features->push_back("etc2");
- }
+ r_features->push_back("etc2");
}
r_features->push_back("wasm32");
}