summaryrefslogtreecommitdiff
path: root/src/interface/Engine.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-20 18:21:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-20 18:21:10 (GMT)
commit75a9460c835f4ebea501a89d23e0c5f46da985cc (patch)
tree4a7d52842b508e8f4097c6becfe117639fcc6947 /src/interface/Engine.cpp
parent0bab640fe48a3b13eb01101977d0c5cb8fef199a (diff)
downloadpowder-75a9460c835f4ebea501a89d23e0c5f46da985cc.zip
powder-75a9460c835f4ebea501a89d23e0c5f46da985cc.tar.gz
OpenGL rendering
Diffstat (limited to 'src/interface/Engine.cpp')
-rw-r--r--src/interface/Engine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp
index 6ac5502..751cbcb 100644
--- a/src/interface/Engine.cpp
+++ b/src/interface/Engine.cpp
@@ -166,6 +166,7 @@ void Engine::Draw()
{
if(lastBuffer && !(state_->Position.X == 0 && state_->Position.Y == 0 && state_->Size.X == width_ && state_->Size.Y == height_))
{
+ g->Clear();
memcpy(g->vid, lastBuffer, (width_ * height_) * PIXELSIZE);
}
else