1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

fix headless import attempting to load graphics driver

This commit is contained in:
Travis Lange
2024-10-22 16:17:09 -04:00
parent 92e51fca72
commit 2e1fc241f9
3 changed files with 18 additions and 1 deletions

View File

@@ -1229,6 +1229,10 @@ void DisplayServer::_input_set_custom_mouse_cursor_func(const Ref<Resource> &p_i
}
bool DisplayServer::can_create_rendering_device() {
if (get_singleton()->get_name() == "headless") {
return false;
}
#if defined(RD_ENABLED)
RenderingDevice *device = RenderingDevice::get_singleton();
if (device) {