(SDL2) Properly deinitialize the video driver

This commit is contained in:
Higor Eurípedes 2014-08-12 13:21:13 -03:00
parent e56edfe2b7
commit fcf929aa2f

View File

@ -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)