mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Fix build with Vulkan disabled and no Vulkan headers installed.
This commit is contained in:
parent
2b505b74b9
commit
4dd8f68120
14 changed files with 56 additions and 10 deletions
|
|
@ -1590,11 +1590,17 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
// Now validate whether the selected driver matches with the renderer.
|
||||
bool valid_combination = false;
|
||||
Vector<String> available_drivers;
|
||||
#ifdef VULKAN_ENABLED
|
||||
if (rendering_method == "forward_plus" || rendering_method == "mobile") {
|
||||
available_drivers.push_back("vulkan");
|
||||
} else if (rendering_method == "gl_compatibility") {
|
||||
}
|
||||
#endif
|
||||
#ifdef GLES3_ENABLED
|
||||
if (rendering_method == "gl_compatibility") {
|
||||
available_drivers.push_back("opengl3");
|
||||
} else {
|
||||
}
|
||||
#endif
|
||||
if (available_drivers.is_empty()) {
|
||||
OS::get_singleton()->print("Unknown renderer name '%s', aborting.\n", rendering_method.utf8().get_data());
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue