mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-14 09:38:05 +02:00
compositor-drm: Be patient when output creation fails
Do not fail if e.g. only one of 3 connectors cant be enabled. Could be that we just have not enough crtcs available.
This commit is contained in:
parent
c18366d1e9
commit
439d98697a
1 changed files with 4 additions and 2 deletions
|
|
@ -570,8 +570,10 @@ create_outputs(struct drm_compositor *ec, int option_connector)
|
|||
(option_connector == 0 ||
|
||||
connector->connector_id == option_connector)) {
|
||||
if (create_output_for_connector(ec, resources,
|
||||
connector, x, y) < 0)
|
||||
return -1;
|
||||
connector, x, y) < 0) {
|
||||
drmModeFreeConnector(connector);
|
||||
continue;
|
||||
}
|
||||
|
||||
x += container_of(ec->base.output_list.prev,
|
||||
struct wlsc_output,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue