aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorPaul Gilbert2010-08-30 02:20:56 +0000
committerEugene Sandulenko2010-10-12 23:19:41 +0000
commitffce890f66bc34b356c8df89591bc4f56e5a9e4e (patch)
treeeb2e28aed94b138c0f356d8eb5c905a9c3bc3b87 /engines/sword25
parent7a2142b8d6f545e99900460e5f03a43fb96f5337 (diff)
downloadscummvm-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/sword25')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp2
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;
}