diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-29 19:11:45 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-29 19:11:45 -0700 |
commit | 5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf (patch) | |
tree | d8aa56e7ef46083c25091a7f807de383f7511e6f | |
parent | bf8206da2b59f3703392063e59de9f556d3b74ae (diff) | |
download | mana-5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf.tar.gz mana-5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf.tar.bz2 mana-5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf.tar.xz mana-5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf.zip |
Fixed a video resolution switching crash.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r-- | src/graphics.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 4854d5fa..784e6e77 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -59,7 +59,6 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) displayFlags |= SDL_SWSURFACE; } - delete mScreen; mScreen = SDL_SetVideoMode(w, h, bpp, displayFlags); if (!mScreen) { |