aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-11-28 14:57:26 +0000
committerMax Horn2010-11-28 14:57:26 +0000
commita5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9 (patch)
tree381fda7e7c3fbdee27b478874a2ea25e1813449d
parentf1cdb318c6817e0c63e397f6bdf7524bb02af2d7 (diff)
downloadscummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.tar.gz
scummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.tar.bz2
scummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.zip
OPENGL: cleanup
svn-id: r54520
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 8682c54921..2acdffa3b0 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -72,12 +72,9 @@ OpenGLGraphicsManager::~OpenGLGraphicsManager() {
free(_gamePalette);
free(_cursorPalette);
- if (_gameTexture != NULL)
- delete _gameTexture;
- if (_overlayTexture != NULL)
- delete _overlayTexture;
- if (_cursorTexture != NULL)
- delete _cursorTexture;
+ delete _gameTexture;
+ delete _overlayTexture;
+ delete _cursorTexture;
}
void OpenGLGraphicsManager::initEventObserver() {