diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-23 13:59:07 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-23 13:59:07 (GMT) |
| commit | f5547f267b9e73be3d8153df3dd36d7e3b69a2d9 (patch) | |
| tree | d34603fa1776beac9009c42f77126db434891546 /src/interface/Engine.cpp | |
| parent | 4cf42e786bd0e2871a5bc580bed14f4d2c742788 (diff) | |
| download | powder-f5547f267b9e73be3d8153df3dd36d7e3b69a2d9.zip powder-f5547f267b9e73be3d8153df3dd36d7e3b69a2d9.tar.gz | |
Option to use OpenGL JUST for the interface
Diffstat (limited to 'src/interface/Engine.cpp')
| -rw-r--r-- | src/interface/Engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp index 76832b6..2526efb 100644 --- a/src/interface/Engine.cpp +++ b/src/interface/Engine.cpp @@ -76,7 +76,7 @@ void Engine::ShowWindow(Window * window) } lastBuffer = (pixel*)malloc((width_ * height_) * PIXELSIZE); -#ifndef OGLR +#ifndef OGLI memcpy(lastBuffer, g->vid, (width_ * height_) * PIXELSIZE); #endif @@ -171,7 +171,7 @@ void Engine::Draw() if(lastBuffer && !(state_->Position.X == 0 && state_->Position.Y == 0 && state_->Size.X == width_ && state_->Size.Y == height_)) { g->Clear(); -#ifndef OGLR +#ifndef OGLI memcpy(g->vid, lastBuffer, (width_ * height_) * PIXELSIZE); #endif } |
