SWORD25: Initialise image data block in constructor

svn-id: r53332
This commit is contained in:
Paul Gilbert 2010-09-07 23:36:18 +00:00 committed by Eugene Sandulenko
parent 07a8c87efc
commit d84400d507

View File

@ -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();