diff options
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/maplayer.cpp | 3 | ||||
-rw-r--r-- | src/resources/map/maplayer.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 51e076e81..c1f1f2d7a 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -246,7 +246,7 @@ void MapLayer::updateSDL(const Graphics *const graphics, BLOCK_END("MapLayer::updateSDL") } -void MapLayer::updateOGL(const Graphics *const graphics, +void MapLayer::updateOGL(Graphics *const graphics, int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, @@ -323,6 +323,7 @@ void MapLayer::updateOGL(const Graphics *const graphics, } } } + graphics->finalize(imgVert); BLOCK_END("MapLayer::updateOGL") } diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h index fc1fe611d..e82aa5870 100644 --- a/src/resources/map/maplayer.h +++ b/src/resources/map/maplayer.h @@ -96,7 +96,7 @@ class MapLayer final: public ConfigListener #ifdef USE_OPENGL void drawOGL(Graphics *const graphics); - void updateOGL(const Graphics *const graphics, + void updateOGL(Graphics *const graphics, int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, |