switch: fix crash on exit (#42)

This commit is contained in:
Matthieu Milan 2020-04-16 01:05:45 +02:00 committed by Dave Murphy
parent bf7515613e
commit d4f7e2d03e
1 changed files with 5 additions and 1 deletions

View File

@ -152,6 +152,10 @@ SWITCH_VideoInit(_THIS)
void void
SWITCH_VideoQuit(_THIS) SWITCH_VideoQuit(_THIS)
{ {
if (_this->gl_config.driver_loaded) {
SDL_GL_UnloadLibrary();
}
// exit touch // exit touch
SWITCH_QuitTouch(); SWITCH_QuitTouch();
//exit keyboard //exit keyboard