From ffce890f66bc34b356c8df89591bc4f56e5a9e4e Mon Sep 17 00:00:00 2001
From: Paul Gilbert
Date: Mon, 30 Aug 2010 02:20:56 +0000
Subject: SWORD25: Bugfix to set _backSurface in alternate GLImage constructor

svn-id: r53294
---
 engines/sword25/gfx/opengl/glimage.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'engines/sword25/gfx/opengl')

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;
 }
-- 
cgit v1.2.3