diff options
author | Paul Gilbert | 2010-08-30 02:20:56 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:19:41 +0000 |
commit | ffce890f66bc34b356c8df89591bc4f56e5a9e4e (patch) | |
tree | eb2e28aed94b138c0f356d8eb5c905a9c3bc3b87 /engines | |
parent | 7a2142b8d6f545e99900460e5f03a43fb96f5337 (diff) | |
download | scummvm-rg350-ffce890f66bc34b356c8df89591bc4f56e5a9e4e.tar.gz scummvm-rg350-ffce890f66bc34b356c8df89591bc4f56e5a9e4e.tar.bz2 scummvm-rg350-ffce890f66bc34b356c8df89591bc4f56e5a9e4e.zip |
SWORD25: Bugfix to set _backSurface in alternate GLImage constructor
svn-id: r53294
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/gfx/opengl/glimage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp index 994a61241e..7c1b95be3f 100644 --- a/engines/sword25/gfx/opengl/glimage.cpp +++ b/engines/sword25/gfx/opengl/glimage.cpp @@ -100,6 +100,8 @@ GLImage::GLImage(unsigned int Width, unsigned int Height, bool &Result) : _data = new byte[Width * Height * 4]; + _backSurface = (static_cast<GraphicEngine *>(Kernel::GetInstance()->GetService("gfx")))->getSurface(); + Result = true; return; } |