mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Revert "Revert "Merge lakka patch for DRM""
This reverts commit 4e0ed3d3d6dd751830ca07a4cea5870cbfc0a074.
This commit is contained in:
parent
4e0ed3d3d6
commit
0383d20465
@ -289,7 +289,10 @@ 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;
|
||||
@ -381,6 +384,8 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user