From 519119db3d20191955e265b2888b14eb09007a4c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 26 Sep 2014 01:47:20 +0200 Subject: Move renderer clear call from MapView to system loop --- src/view/MapView.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/view/MapView.cpp') diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp index 78bc24c..d8a69d5 100644 --- a/src/view/MapView.cpp +++ b/src/view/MapView.cpp @@ -95,8 +95,6 @@ void MapView::clearEntities() { } void MapView::render(const Model::Map *map, Model::Position center, uint64_t time) { - SDL_RenderClear(window->getRenderer()); - std::pair viewport = window->getViewport(); float pixels = std::max(viewport.first/20.0f, viewport.second/15.0f); -- cgit v1.2.3