Merge pull request from akien-mga/project-features-ignore-old-vulkan-names

Project supported features: Ignore old 'Vulkan Clustered/Forward' names
This commit is contained in:
Rémi Verschelde 2022-09-28 23:52:33 +02:00
commit fc65354a1c

View file

@ -119,6 +119,10 @@ const PackedStringArray ProjectSettings::get_unsupported_features(const PackedSt
PackedStringArray supported_features = singleton->_get_supported_features(); PackedStringArray supported_features = singleton->_get_supported_features();
for (int i = 0; i < p_project_features.size(); i++) { for (int i = 0; i < p_project_features.size(); i++) {
if (!supported_features.has(p_project_features[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]); unsupported_features.append(p_project_features[i]);
} }
} }