1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

[Core] Add LocalVector::has for convenience

This commit is contained in:
A Thousand Ships
2024-05-06 16:43:04 +02:00
parent d8aa2c65a9
commit 86de59d60a
12 changed files with 27 additions and 14 deletions

View File

@@ -2603,7 +2603,7 @@ Error RenderingDeviceDriverVulkan::swap_chain_resize(CommandQueueID p_cmd_queue,
break;
}
bool present_mode_available = present_modes.find(present_mode) >= 0;
bool present_mode_available = present_modes.has(present_mode);
if (present_mode_available) {
print_verbose("Using present mode: " + present_mode_name);
} else {