[cogl/cogl-1.20] egl-kms: append output after we know we found it



commit 06c79cd4699b503f954c30010d5227980fc0a782
Author: Marek Chalupa <mchqwerty gmail com>
Date:   Wed Jul 15 09:31:58 2015 +0200

    egl-kms: append output after we know we found it
    
    Otherwise we just append NULL output which is wrong and can
    break things

 cogl/winsys/cogl-winsys-egl-kms.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index c5d014a..6628927 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -668,10 +668,11 @@ _cogl_winsys_egl_display_setup (CoglDisplay *display,
                          NULL,
                          0, /* n excluded connectors */
                          error);
-  kms_display->outputs = g_list_append (kms_display->outputs, output0);
   if (!output0)
     return FALSE;
 
+  kms_display->outputs = g_list_append (kms_display->outputs, output0);
+
   if (getenv ("COGL_KMS_MIRROR"))
     mirror = TRUE;
   else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]