diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-01 23:07:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 23:07:21 +0100 |
commit | 29a66f7b04924505d0694a8101eec16ffb8a7c11 (patch) | |
tree | 3e4aa98e24e4dea640f032b9c702be101199ac04 /platform/javascript/export/export_plugin.cpp | |
parent | 5945f43cc8d18976129e7f59003caf3873c90e22 (diff) | |
parent | 665d29c16dd4eafb3c90e7f65835030d8d0b4f43 (diff) |
Merge pull request #54491 from Calinou/project-manager-fix-vulkan-choice
Fix new projects always being created with OpenGL
Diffstat (limited to 'platform/javascript/export/export_plugin.cpp')
-rw-r--r-- | platform/javascript/export/export_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/javascript/export/export_plugin.cpp b/platform/javascript/export/export_plugin.cpp index b4f93b9b44..018dd3b664 100644 --- a/platform/javascript/export/export_plugin.cpp +++ b/platform/javascript/export/export_plugin.cpp @@ -300,9 +300,9 @@ void EditorExportPlatformJavaScript::get_preset_features(const Ref<EditorExportP if (p_preset->get("vram_texture_compression/for_mobile")) { String driver = ProjectSettings::get_singleton()->get("rendering/driver/driver_name"); - if (driver == "OpenGL3") { + if (driver == "opengl3") { r_features->push_back("etc"); - } else if (driver == "Vulkan") { + } else if (driver == "vulkan") { // FIXME: Review if this is correct. r_features->push_back("etc2"); } |