aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/opengl
diff options
context:
space:
mode:
authorPaul Gilbert2010-09-07 23:36:18 +0000
committerEugene Sandulenko2010-10-12 23:41:57 +0000
commitd84400d5074b7c4bf6efe8dc002d75191ff74b67 (patch)
tree79071c387d8f80af2dd3b208d90a93ddcad050fa /engines/sword25/gfx/opengl
parent07a8c87efcc5397ad681ae64c499483ad6b8d754 (diff)
downloadscummvm-rg350-d84400d5074b7c4bf6efe8dc002d75191ff74b67.tar.gz
scummvm-rg350-d84400d5074b7c4bf6efe8dc002d75191ff74b67.tar.bz2
scummvm-rg350-d84400d5074b7c4bf6efe8dc002d75191ff74b67.zip
SWORD25: Initialise image data block in constructor
svn-id: r53332
Diffstat (limited to 'engines/sword25/gfx/opengl')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp
index 785829eedb..d265d0bed8 100644
--- a/engines/sword25/gfx/opengl/glimage.cpp
+++ b/engines/sword25/gfx/opengl/glimage.cpp
@@ -100,6 +100,7 @@ GLImage::GLImage(uint width, uint height, bool &result) :
_height(height) {
_data = new byte[width * height * 4];
+ Common::set_to(_data, &_data[width * height * 4], 0);
_backSurface = (static_cast<GraphicEngine *>(Kernel::GetInstance()->GetService("gfx")))->getSurface();