Skip to content

Commit

Permalink
switch: fix crash on exit (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
usineur authored and WinterMute committed Jan 20, 2024
1 parent 007fc27 commit 4eb03d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/switch/SDL_switchvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ SWITCH_VideoInit(_THIS)
void
SWITCH_VideoQuit(_THIS)
{
if (_this->gl_config.driver_loaded) {
SDL_GL_UnloadLibrary();
}

// exit touch
SWITCH_QuitTouch();
//exit keyboard
Expand Down Expand Up @@ -325,4 +329,4 @@ SWITCH_PumpEvents(_THIS)
SWITCH_PollMouse();
}

#endif /* SDL_VIDEO_DRIVER_SWITCH */
#endif /* SDL_VIDEO_DRIVER_SWITCH */

0 comments on commit 4eb03d5

Please sign in to comment.