(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…
Reference in New Issue