Mercurial > fife-parpg
diff engine/core/controller/engine.cpp @ 669:46258f467c8c
* Fixed the clear screen problems. The screen is now automatically cleared every frame by the engine if there are no maps loaded. In the process I removed the setClearBackBuffer() function from the RenderBackend.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Nov 2010 21:36:38 +0000 |
parents | 3944096d12ce |
children | ca1fcb96907d |
line wrap: on
line diff
--- a/engine/core/controller/engine.cpp Mon Nov 08 20:37:31 2010 +0000 +++ b/engine/core/controller/engine.cpp Mon Nov 08 21:36:38 2010 +0000 @@ -363,6 +363,11 @@ m_eventmanager->processEvents(); m_renderbackend->startFrame(); m_timemanager->update(); + + if (m_model->getNumMaps() == 0) { + m_renderbackend->clearBackBuffer(); + } + m_model->update(); #ifdef HAVE_OPENGL if (m_settings.getLightingModel() == 1) {