Navigation Menu

Skip to content

Commit

Permalink
kmsdrm: Add comment about KMSDRM_VideoQuit() changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanfanel committed Oct 22, 2020
1 parent 63b7827 commit 5682b06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -1448,6 +1448,10 @@ KMSDRM_VideoQuit(_THIS)
return;
}

/* Don't call any SDL_GetDisplay* function until we get sure that
VideoInit() succeeded, because the SDL_GetDisplay* call would
throw it's own SDL_SetError(), overwritting the error set in
the failed VideoInit() call. */
dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0);

/*****************************************************************/
Expand Down

0 comments on commit 5682b06

Please sign in to comment.