summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 01:47:20 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 01:47:20 +0200
commit519119db3d20191955e265b2888b14eb09007a4c (patch)
tree040bc95a8a1525639c492305ca9b348e1bcd7f08 /src/control
parentd9f829f10a8310f53d945cd96ecce28193b792d8 (diff)
downloadrpgedit-519119db3d20191955e265b2888b14eb09007a4c.tar
rpgedit-519119db3d20191955e265b2888b14eb09007a4c.zip
Move renderer clear call from MapView to system loop
Diffstat (limited to 'src/control')
-rw-r--r--src/control/RPGEdit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/control/RPGEdit.cpp b/src/control/RPGEdit.cpp
index 257a801..f42a774 100644
--- a/src/control/RPGEdit.cpp
+++ b/src/control/RPGEdit.cpp
@@ -71,6 +71,8 @@ void RPGEdit::systemLoop() {
lastFrameTicks = SDL_GetTicks();
+ SDL_RenderClear(window->getRenderer());
+
{
std::unique_lock<std::mutex> lock(modelMutex);