sdl: exit cleanly when scalers are enabled instead of segfaulting

This commit is contained in:
punkrockguy318 2010-03-31 03:44:40 +00:00
parent ec43e84f64
commit d4f6aae2cb
1 changed files with 5 additions and 0 deletions

View File

@ -347,6 +347,11 @@ InitVideo(FCEUGI *gi)
KillVideo();
return -1;
}
if(s_sponge) {
FCEUD_PrintError("scalers not openGL compatible.");
KillVideo();
return -1;
}
#endif
s_screen = SDL_SetVideoMode((int)(NWIDTH * s_exs),