kmsdrm: Add comment about KMSDRM_VideoQuit() changes.
authorManuel Alfayate Corchete
Thu, 22 Oct 2020 19:51:57 +0200
changeset 141917bb6793cd70f
parent 14190 477ac53bef76
child 14192 7d3ac0237149
kmsdrm: Add comment about KMSDRM_VideoQuit() changes.
src/video/kmsdrm/SDL_kmsdrmvideo.c
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Thu Oct 22 19:44:38 2020 +0200
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Thu Oct 22 19:51:57 2020 +0200
     1.3 @@ -1448,6 +1448,10 @@
     1.4          return;
     1.5      }
     1.6  
     1.7 +    /* Don't call any SDL_GetDisplay* function until we get sure that
     1.8 +       VideoInit() succeeded, because the SDL_GetDisplay* call would
     1.9 +       throw it's own SDL_SetError(), overwritting the error set in
    1.10 +       the failed VideoInit() call. */
    1.11      dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0);
    1.12  
    1.13      /*****************************************************************/