aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}