[cogl/wip/wayland-for-demo: 4/4] cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/wayland-for-demo: 4/4] cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown
- Date: Wed, 12 Mar 2014 16:30:03 +0000 (UTC)
commit ce837bfabcd7514d6e0e3eedf151247c135e3d1a
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
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]