mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
SWORD25: Initialise image data block in constructor
svn-id: r53332
This commit is contained in:
parent
07a8c87efc
commit
d84400d507
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user