You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user