Bladeren bron

kmsdrm: Initialize kms_in_fence_fd to -1

Prior to this fix, we closed stdin on the first call to drm_atomic_commit().
Cameron Gutman 3 dagen geleden
bovenliggende
commit
3c11b43e59
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      src/video/kmsdrm/SDL_kmsdrmvideo.c

+ 1 - 0
src/video/kmsdrm/SDL_kmsdrmvideo.c

@@ -1125,6 +1125,7 @@ static void KMSDRM_AddDisplay(SDL_VideoDevice *_this, drmModeConnector *conn, dr
        to sane values. */
        to sane values. */
     dispdata->cursor_bo = NULL;
     dispdata->cursor_bo = NULL;
     dispdata->cursor_bo_drm_fd = -1;
     dispdata->cursor_bo_drm_fd = -1;
+    dispdata->kms_in_fence_fd = -1;
     dispdata->kms_out_fence_fd = -1;
     dispdata->kms_out_fence_fd = -1;
 
 
     /* Since we create and show the default cursor on KMSDRM_InitMouse(),
     /* Since we create and show the default cursor on KMSDRM_InitMouse(),