You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
openxr: Revert to 1.0.28, newer versions crash on Windows/Mingw-GCC
Reverts #82582. Works around #83674. Users tested 1.0.29, 1.0.30, and 1.0.31, which all triggered the same issue, with both mingw-gcc from Fedora 36 and Fedora 39.
This commit is contained in:
@@ -237,23 +237,21 @@ XrResult ApiLayerInterface::LoadApiLayers(const std::string& openxr_command, uin
|
||||
for (const auto& layer_name : enabled_explicit_api_layer_names) {
|
||||
bool found_this_layer = false;
|
||||
|
||||
if (layers_already_found.count(layer_name) > 0) {
|
||||
found_this_layer = true;
|
||||
} else {
|
||||
for (auto it = explicit_layer_manifest_files.begin(); it != explicit_layer_manifest_files.end();) {
|
||||
bool erased_layer_manifest_file = false;
|
||||
for (auto it = explicit_layer_manifest_files.begin(); it != explicit_layer_manifest_files.end();) {
|
||||
bool erased_layer_manifest_file = false;
|
||||
|
||||
if (layer_name == (*it)->LayerName()) {
|
||||
found_this_layer = true;
|
||||
layers_already_found.insert(layer_name);
|
||||
enabled_layer_manifest_files_in_init_order.push_back(std::move(*it));
|
||||
it = explicit_layer_manifest_files.erase(it);
|
||||
erased_layer_manifest_file = true;
|
||||
}
|
||||
if (layers_already_found.count(layer_name) > 0) {
|
||||
found_this_layer = true;
|
||||
} else if (layer_name == (*it)->LayerName()) {
|
||||
found_this_layer = true;
|
||||
layers_already_found.insert(layer_name);
|
||||
enabled_layer_manifest_files_in_init_order.push_back(std::move(*it));
|
||||
it = explicit_layer_manifest_files.erase(it);
|
||||
erased_layer_manifest_file = true;
|
||||
}
|
||||
|
||||
if (!erased_layer_manifest_file) {
|
||||
it++;
|
||||
}
|
||||
if (!erased_layer_manifest_file) {
|
||||
it++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user