Do not call SDL_Quit()

It may crash in i965_dri.so when calling SDL_Quit (probably a driver
bug). To avoid a segmentation fault, do not call SDL_Quit().
This commit is contained in:
Romain Vimont 2017-12-19 13:55:36 +01:00
parent a005df7b37
commit 07b3918129

View file

@ -297,7 +297,9 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) {
ret = SDL_FALSE;
goto screen_finally_stop_decoder;
}
atexit(SDL_Quit);
// FIXME it may crash in SDL_Quit in i965_dri.so
// As a workaround, do not call SDL_Quit() (we are exiting anyway).
// atexit(SDL_Quit);
// Bilinear resizing
if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) {