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)
This commit is contained in:
parent
0d91085193
commit
e7011f1910
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user