libweston: call correct weston_backend::create_output depending on head
Now that struct weston_head contains a pointer to the backend owning the head, choose to call the same backend's create_output callback. This will be necessary to support loading multiple backends simultaneously. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
746a03068e
commit
2667829746
|
@ -7379,7 +7379,7 @@ weston_compositor_create_output(struct weston_compositor *compositor,
|
||||||
{
|
{
|
||||||
struct weston_output *output;
|
struct weston_output *output;
|
||||||
|
|
||||||
assert(compositor->backend->create_output);
|
assert(head->backend->create_output);
|
||||||
|
|
||||||
if (weston_compositor_find_output_by_name(compositor, name)) {
|
if (weston_compositor_find_output_by_name(compositor, name)) {
|
||||||
weston_log("Warning: attempted to create an output with a "
|
weston_log("Warning: attempted to create an output with a "
|
||||||
|
@ -7387,7 +7387,7 @@ weston_compositor_create_output(struct weston_compositor *compositor,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
output = compositor->backend->create_output(compositor, name);
|
output = head->backend->create_output(compositor, name);
|
||||||
if (!output)
|
if (!output)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue