egl-kms: append output after we know we found it
Otherwise we just append NULL output which is wrong and can break things Signed-off-by: Emmanuele Bassi <ebassi@gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=752406
This commit is contained in:
parent
7222260b40
commit
e7f54e6e60
@ -668,10 +668,11 @@ _cogl_winsys_egl_display_setup (CoglDisplay *display,
|
|||||||
NULL,
|
NULL,
|
||||||
0, /* n excluded connectors */
|
0, /* n excluded connectors */
|
||||||
error);
|
error);
|
||||||
kms_display->outputs = g_list_append (kms_display->outputs, output0);
|
|
||||||
if (!output0)
|
if (!output0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
kms_display->outputs = g_list_append (kms_display->outputs, output0);
|
||||||
|
|
||||||
if (getenv ("COGL_KMS_MIRROR"))
|
if (getenv ("COGL_KMS_MIRROR"))
|
||||||
mirror = TRUE;
|
mirror = TRUE;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user