summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-12-29 19:11:45 -0700
committerIra Rice <irarice@gmail.com>2008-12-29 19:11:45 -0700
commit5576b9efc3f9fe63ecebeaa63d1e5951a3d8d2cf (patch)
treed8aa56e7ef46083c25091a7f807de383f7511e6f /src/graphics.cpp
parentbf8206da2b59f3703392063e59de9f556d3b74ae (diff)
downloadmana-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>
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp1
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) {