[cogl/cogl-1.18] cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown



commit e7011f1910293c4626432cf68d77f474ae6c925b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Mar 12 12:09:01 2014 -0400

    cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown
    
    Reviewed-by: Neil Roberts <neil linux intel com>
    (cherry picked from commit dcdba60e95ae7be1b0253d28686d1562c35374ba)

 cogl/winsys/cogl-winsys-egl-kms.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index 3c5460e..a3649e7 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -122,6 +122,9 @@ _cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
 
   eglTerminate (egl_renderer->edpy);
 
+  if (kms_renderer->opened_fd >= 0)
+    close (kms_renderer->opened_fd);
+
   g_slice_free (CoglRendererKMS, kms_renderer);
   g_slice_free (CoglRendererEGL, egl_renderer);
 }


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