mirror of https://github.com/encounter/SDL.git
switch: fix crash on exit (#42)
This commit is contained in:
parent
bf7515613e
commit
d4f7e2d03e
|
@ -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
|
||||||
|
@ -325,4 +329,4 @@ SWITCH_PumpEvents(_THIS)
|
||||||
SWITCH_PollMouse();
|
SWITCH_PollMouse();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_SWITCH */
|
#endif /* SDL_VIDEO_DRIVER_SWITCH */
|
||||||
|
|
Loading…
Reference in New Issue