From 427676d8a21ec9dcc279c4cbb0c025dabc06ff7b Mon Sep 17 00:00:00 2001 From: nmiell Date: Sun, 8 Jan 2023 07:47:47 +0000 Subject: [PATCH] SDL2/SDL_Quit: If OpenGL is dynamically loaded, it's C++ destructors will have run before SDL_Quit gets called, resulting in crashes. Live page is here: https://wiki.libsdl.org/SDL2/SDL_Quit --- SDL2/SDL_Quit.mediawiki | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SDL2/SDL_Quit.mediawiki b/SDL2/SDL_Quit.mediawiki index ee1ff9734..a728ba565 100644 --- a/SDL2/SDL_Quit.mediawiki +++ b/SDL2/SDL_Quit.mediawiki @@ -22,10 +22,7 @@ If you start a subsystem using a call to that subsystem's init function generally, you should not be using those functions directly anyhow; use [[SDL_Init]]() instead. -You can use this function with atexit() to ensure that it is run when your -application is shutdown, but it is not wise to do this from a library or -other dynamically loaded code. - +Previous versions of this article have suggested registering [[SDL_Quit]]() with atexit() or similar APIs. Do not do this; crashes are likely to result. == Version == This function is available since SDL 2.0.0.