Răsfoiți Sursa

kmsdrm: Add comment about KMSDRM_VideoQuit() changes.

Manuel Alfayate Corchete 4 ani în urmă
părinte
comite
5682b066e9
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      src/video/kmsdrm/SDL_kmsdrmvideo.c

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

@@ -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);
 
     /*****************************************************************/