diff options
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index d6e6e8991d..eaa7a03642 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -191,6 +191,8 @@ void OSystem_SDL::unload_gfx_mode() { } void OSystem_SDL::hotswap_gfx_mode() { + if (!_screen) + return; // Keep around the old _screen & _tmpscreen so we can restore the screen data // after the mode switch. |