diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-28 23:27:07 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-28 23:27:27 +0200 |
commit | dc4a634c0d0cef01e1c9cb6afe53b62225ad7086 (patch) | |
tree | 7e3ad4bd1b9eaf265761224dee07907a455d175e /core/config | |
parent | e3464c8fc86e346c5c3a9d7d554cc2c5866ccb48 (diff) |
Project supported features: Ignore old 'Vulkan Clustered/Forward' names
This eases transition from beta 1 to beta 2 so that users don't get a warning
about a missing feature. The names were just changed.
The old feature names are removed from project.godot when opening such a
project.
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/project_settings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index a1b22e7f7d..4d19a93991 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -119,6 +119,10 @@ const PackedStringArray ProjectSettings::get_unsupported_features(const PackedSt PackedStringArray supported_features = singleton->_get_supported_features(); for (int i = 0; i < p_project_features.size(); i++) { if (!supported_features.has(p_project_features[i])) { + // Temporary compatibility code to ease upgrade to 4.0 beta 2+. + if (p_project_features[i].begins_with("Vulkan")) { + continue; + } unsupported_features.append(p_project_features[i]); } } |