mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-03 15:46:04 +02:00
kmsdrm: Initialize kms_in_fence_fd to -1
Prior to this fix, we closed stdin on the first call to drm_atomic_commit().
(cherry picked from commit 3c11b43e59)
This commit is contained in:
@@ -1129,6 +1129,7 @@ static void KMSDRM_AddDisplay(SDL_VideoDevice *_this, drmModeConnector *conn, dr
|
||||
to sane values. */
|
||||
dispdata->cursor_bo = NULL;
|
||||
dispdata->cursor_bo_drm_fd = -1;
|
||||
dispdata->kms_in_fence_fd = -1;
|
||||
dispdata->kms_out_fence_fd = -1;
|
||||
|
||||
/* Since we create and show the default cursor on KMSDRM_InitMouse(),
|
||||
|
||||
Reference in New Issue
Block a user