mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(sdl_gl) Fix segfault
This commit is contained in:
parent
35247bf663
commit
15297c85cd
@ -89,10 +89,13 @@ static void sdl_ctx_destroy(void *data)
|
||||
|
||||
if (g_win)
|
||||
SDL_DestroyWindow(g_win);
|
||||
|
||||
g_ctx = NULL;
|
||||
#else
|
||||
SDL_FreeSurface(g_win);
|
||||
g_win = NULL;
|
||||
if (g_win)
|
||||
SDL_FreeSurface(g_win);
|
||||
#endif
|
||||
g_win = NULL;
|
||||
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user