diff options
author | Max Horn | 2010-11-28 14:57:26 +0000 |
---|---|---|
committer | Max Horn | 2010-11-28 14:57:26 +0000 |
commit | a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9 (patch) | |
tree | 381fda7e7c3fbdee27b478874a2ea25e1813449d /backends/graphics/opengl/opengl-graphics.cpp | |
parent | f1cdb318c6817e0c63e397f6bdf7524bb02af2d7 (diff) | |
download | scummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.tar.gz scummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.tar.bz2 scummvm-rg350-a5ffdcf6cf2c0cb7d1c4a26790ef217eb6a1e5b9.zip |
OPENGL: cleanup
svn-id: r54520
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 9 |
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() { |