Revert "Merge lakka patch for DRM"

This reverts commit 207ebe5e59637b88c148dc26d22da373098a6ea1.
This commit is contained in:
twinaphex 2017-02-05 11:05:55 +01:00
parent e6102fed35
commit 4e0ed3d3d6

View File

@ -289,10 +289,7 @@ static void free_drm_resources(gfx_ctx_drm_data_t *drm)
if (drm->drm)
if (g_drm_fd >= 0)
{
drmDropMaster(g_drm_fd);
filestream_close(drm->drm);
}
g_gbm_surface = NULL;
g_gbm_dev = NULL;
@ -384,8 +381,6 @@ nextgpu:
drm->fb_width = g_drm_connector->modes[0].hdisplay;
drm->fb_height = g_drm_connector->modes[0].vdisplay;
drmSetMaster(g_drm_fd);
g_gbm_dev = gbm_create_device(fd);
if (!g_gbm_dev)