mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
(SDL2) Properly deinitialize the video driver
This commit is contained in:
parent
e56edfe2b7
commit
fcf929aa2f
@ -568,6 +568,12 @@ static void sdl2_gfx_free(void *data)
|
||||
if (!vid)
|
||||
return;
|
||||
|
||||
if (vid->renderer)
|
||||
SDL_DestroyRenderer(vid->renderer);
|
||||
|
||||
if (vid->window)
|
||||
SDL_DestroyWindow(vid->window);
|
||||
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
if (vid->font_data)
|
||||
|
Loading…
Reference in New Issue
Block a user